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
StartArray(Option<u64>)
EndArray
StartDictionary(Option<u64>)
EndDictionary
BooleanValue(bool)
DataValue(Vec<u8>)
DateValue(Date)
IntegerValue(i64)
RealValue(f64)
StringValue(String)
Trait Implementations
impl Clone for PlistEvent
[src]
fn clone(&self) -> PlistEvent
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for PlistEvent
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for PlistEvent
[src]
fn eq(&self, __arg_0: &PlistEvent) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PlistEvent) -> bool
[src]
This method tests for !=
.