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: String
The 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§
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.
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 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