pub struct VmfBlock {
pub name: String,
pub key_values: IndexMap<String, String>,
pub blocks: Vec<VmfBlock>,
}Expand description
Represents a block in a VMF file, which can contain key-value pairs and other blocks.
Fields§
§name: StringThe name of the block.
key_values: IndexMap<String, String>The key-value pairs in the block.
blocks: Vec<VmfBlock>The child blocks contained within this block.
Implementations§
Trait Implementations§
impl Eq for VmfBlock
Source§impl From<VersionInfo> for VmfBlock
impl From<VersionInfo> for VmfBlock
Source§fn from(val: VersionInfo) -> Self
fn from(val: VersionInfo) -> Self
Converts to this type from the input type.
Source§impl From<ViewSettings> for VmfBlock
impl From<ViewSettings> for VmfBlock
Source§fn from(val: ViewSettings) -> Self
fn from(val: ViewSettings) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for VmfBlock
Source§impl TryFrom<VmfBlock> for VersionInfo
impl TryFrom<VmfBlock> for VersionInfo
Source§impl TryFrom<VmfBlock> for ViewSettings
impl TryFrom<VmfBlock> for ViewSettings
Auto Trait Implementations§
impl Freeze for VmfBlock
impl RefUnwindSafe for VmfBlock
impl Send for VmfBlock
impl Sync for VmfBlock
impl Unpin for VmfBlock
impl UnsafeUnpin for VmfBlock
impl UnwindSafe for VmfBlock
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.