Enum plist::Plist [] [src]

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

Variants

Methods

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 Clone for Plist
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Plist
[src]

Formats the value using the given formatter.

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 From<Vec<Plist>> for Plist
[src]

Performs the conversion.

impl From<BTreeMap<String, Plist>> for Plist
[src]

Performs the conversion.

impl From<bool> for Plist
[src]

Performs the conversion.

impl<'a> From<&'a bool> for Plist
[src]

Performs the conversion.

impl From<Date> for Plist
[src]

Performs the conversion.

impl<'a> From<&'a Date> for Plist
[src]

Performs the conversion.

impl From<f64> for Plist
[src]

Performs the conversion.

impl From<f32> for Plist
[src]

Performs the conversion.

impl From<i64> for Plist
[src]

Performs the conversion.

impl From<i32> for Plist
[src]

Performs the conversion.

impl From<i16> for Plist
[src]

Performs the conversion.

impl From<i8> for Plist
[src]

Performs the conversion.

impl From<u32> for Plist
[src]

Performs the conversion.

impl From<u16> for Plist
[src]

Performs the conversion.

impl From<u8> for Plist
[src]

Performs the conversion.

impl<'a> From<&'a f64> for Plist
[src]

Performs the conversion.

impl<'a> From<&'a f32> for Plist
[src]

Performs the conversion.

impl<'a> From<&'a i64> for Plist
[src]

Performs the conversion.

impl<'a> From<&'a i32> for Plist
[src]

Performs the conversion.

impl<'a> From<&'a i16> for Plist
[src]

Performs the conversion.

impl<'a> From<&'a i8> for Plist
[src]

Performs the conversion.

impl<'a> From<&'a u32> for Plist
[src]

Performs the conversion.

impl<'a> From<&'a u16> for Plist
[src]

Performs the conversion.

impl<'a> From<&'a u8> for Plist
[src]

Performs the conversion.

impl From<String> for Plist
[src]

Performs the conversion.

impl<'a> From<&'a str> for Plist
[src]

Performs the conversion.