diff options
| author | Edward Barnard | 2015-08-04 17:24:37 +0100 |
|---|---|---|
| committer | Edward Barnard | 2015-08-04 17:24:37 +0100 |
| commit | 094994360a7eb81eb545fccfe73e80765be71fd3 (patch) | |
| tree | f37e86ce5e475a87598ba65ed27af6b6e55f5f77 /src/lib.rs | |
| parent | da761e65e2f7b74afd2bdf1e07b19e038d990df6 (diff) | |
| download | rust-plist-094994360a7eb81eb545fccfe73e80765be71fd3.tar.bz2 | |
More parsing
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 19 |
1 files changed, 18 insertions, 1 deletions
@@ -1,4 +1,21 @@ extern crate rustc_serialize; extern crate xml; -pub mod reader;
\ No newline at end of file +mod reader; + +pub use reader::{Parser, StreamingParser, PlistEvent}; + +use std::collections::HashMap; + +#[derive(Clone, Debug, PartialEq)] +pub enum Plist { + Array(Vec<Plist>), + Dictionary(HashMap<String, Plist>), + Boolean(bool), + Data(Vec<u8>), + Date(String), + Real(f64), + Integer(i64), + String(String) +} + |
