Enum plist::PlistEvent [] [src]

pub enum PlistEvent {
    StartArray(Option<u64>),
    EndArray,
    StartDictionary(Option<u64>),
    EndDictionary,
    BooleanValue(bool),
    DataValue(Vec<u8>),
    DateValue(Date),
    IntegerValue(i64),
    RealValue(f64),
    StringValue(String),
}

An encoding of a plist as a flat structure.

Output by the event readers.

Dictionary keys and values are represented as pairs of values e.g.:

This example is not tested
StartDictionary
StringValue("Height") // Key
RealValue(181.2)      // Value
StringValue("Age")    // Key
IntegerValue(28)      // Value
EndDictionary

Variants

Trait Implementations

impl Clone for PlistEvent
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for PlistEvent
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for PlistEvent
[src]

[src]

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

[src]

This method tests for !=.

Auto Trait Implementations

impl Send for PlistEvent

impl Sync for PlistEvent