pub enum PlistValue {
Bool(bool),
Integer(i64),
Real(f64),
Date(f64),
Data(Vec<u8>),
String(String),
Uid(u64),
Array(Vec<PlistValue>),
Dict(Vec<(String, PlistValue)>),
}Expand description
A decoded property-list value.
Variants§
Bool(bool)
Boolean (0x08 false / 0x09 true).
Integer(i64)
Signed integer (1/2/4/8-byte; wider ints are truncated to the low 64 bits).
Real(f64)
IEEE-754 real (f32 widened to f64, or native f64).
Date(f64)
Date: seconds since the Apple epoch (2001-01-01T00:00:00Z).
Data(Vec<u8>)
Raw data blob.
String(String)
UTF-8 (from ASCII) or UTF-16BE string.
Uid(u64)
CoreFoundation keyed-archiver UID.
Array(Vec<PlistValue>)
Ordered array.
Dict(Vec<(String, PlistValue)>)
Ordered key/value dictionary (insertion order preserved).
Trait Implementations§
Source§impl Clone for PlistValue
impl Clone for PlistValue
Source§fn clone(&self) -> PlistValue
fn clone(&self) -> PlistValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlistValue
impl Debug for PlistValue
Source§impl PartialEq for PlistValue
impl PartialEq for PlistValue
impl StructuralPartialEq for PlistValue
Auto Trait Implementations§
impl Freeze for PlistValue
impl RefUnwindSafe for PlistValue
impl Send for PlistValue
impl Sync for PlistValue
impl Unpin for PlistValue
impl UnsafeUnpin for PlistValue
impl UnwindSafe for PlistValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more