pub enum PlistValue {
String(String),
Integer(i64),
Real(f64),
Boolean(bool),
Array(Vec<PlistValue>),
Dict(BTreeMap<String, PlistValue>),
}Expand description
Tagged-union value for plist trees. Matches what the CoreFoundation property-list serializer accepts; the engine renders it to XML plist format.
Variants§
String(String)
Integer(i64)
Real(f64)
Boolean(bool)
Array(Vec<PlistValue>)
Dict(BTreeMap<String, PlistValue>)
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<'de> Deserialize<'de> for PlistValue
impl<'de> Deserialize<'de> for PlistValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PlistValue
impl PartialEq for PlistValue
Source§fn eq(&self, other: &PlistValue) -> bool
fn eq(&self, other: &PlistValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PlistValue
impl Serialize 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