pub struct Extras {
pub key_values: IndexMap<String, String>,
pub blocks: Vec<VmfBlock>,
}Expand description
Preserves unrecognized keys and nested blocks during parsing for lossless round-tripping.
Fields§
§key_values: IndexMap<String, String>Keys that are not mapped to typed struct fields.
blocks: Vec<VmfBlock>Nested blocks that are not mapped to typed struct fields.
Implementations§
Source§impl Extras
impl Extras
pub fn is_empty(&self) -> bool
Sourcepub fn write_key_values(&self, output: &mut String, indent_level: usize)
pub fn write_key_values(&self, output: &mut String, indent_level: usize)
Serializes unrecognized key-value pairs at the specified indentation level.
Sourcepub fn write_blocks(&self, output: &mut String, indent_level: usize)
pub fn write_blocks(&self, output: &mut String, indent_level: usize)
Serializes unrecognized blocks at the specified indentation level.
Trait Implementations§
impl Eq for Extras
impl StructuralPartialEq for Extras
Auto Trait Implementations§
impl Freeze for Extras
impl RefUnwindSafe for Extras
impl Send for Extras
impl Sync for Extras
impl Unpin for Extras
impl UnsafeUnpin for Extras
impl UnwindSafe for Extras
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.