Enum plist::Plist [] [src]

pub enum Plist {
    Array(Vec<Plist>),
    Dictionary(BTreeMap<StringPlist>),
    Boolean(bool),
    Data(Vec<u8>),
    Date(DateTime<UTC>),
    Real(f64),
    Integer(i64),
    String(String),
}

Variants

Methods

impl Plist
[src]

impl Plist
[src]

If the Plist is an Array, returns the associated Vec. Returns None otherwise.

If the Plist is an Array, returns the associated mutable Vec. Returns None otherwise.

If the Plist is a Dictionary, returns the associated BTreeMap. Returns None otherwise.

If the Plist is a Dictionary, returns the associated mutable BTreeMap. Returns None otherwise.

If the Plist is a Boolean, returns the associated bool. Returns None otherwise.

If the Plist is a Data, returns the underlying Vec. Returns None otherwise.

This method consumes the Plist. If this is not desired, please use as_data method.

If the Plist is a Data, returns the associated Vec. Returns None otherwise.

If the Plist is a Date, returns the associated DateTime. Returns None otherwise.

If the Plist is a Real, returns the associated f64. Returns None otherwise.

If the Plist is an Integer, returns the associated i64. Returns None otherwise.

If the Plist is a String, returns the underlying String. Returns None otherwise.

This method consumes the Plist. If this is not desired, please use as_string method.

If the Plist is a String, returns the associated str. Returns None otherwise.

Trait Implementations

impl PartialEq for Plist
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Plist
[src]

Formats the value using the given formatter.

impl Clone for Plist
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more