pub struct Deserializer<'de> { /* private fields */ }Expand description
A parser for KeyValues (VDF) format.
Implementations§
Source§impl<'de> Deserializer<'de>
impl<'de> Deserializer<'de>
Sourcepub fn parse_value(&mut self) -> Result<Value>
pub fn parse_value(&mut self) -> Result<Value>
Parses a single KeyValues value.
Sourcepub fn parse_map_content(&mut self) -> Result<IndexMap<String, Vec<Value>>>
pub fn parse_map_content(&mut self) -> Result<IndexMap<String, Vec<Value>>>
Parses the content of a KeyValues object.
Sourcepub fn parse_root(&mut self) -> Result<Value>
pub fn parse_root(&mut self) -> Result<Value>
Parses the root level of a KeyValues document.
Auto Trait Implementations§
impl<'de> Freeze for Deserializer<'de>
impl<'de> RefUnwindSafe for Deserializer<'de>
impl<'de> Send for Deserializer<'de>
impl<'de> Sync for Deserializer<'de>
impl<'de> Unpin for Deserializer<'de>
impl<'de> UnsafeUnpin for Deserializer<'de>
impl<'de> UnwindSafe for Deserializer<'de>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more