pub struct VisGroup {
pub name: String,
pub id: i32,
pub color: String,
pub children: Option<Vec<VisGroup>>,
pub extra: Extras,
}Expand description
Represents a VisGroup in a VMF file.
Fields§
§name: StringThe name of the VisGroup.
id: i32The ID of the VisGroup.
color: StringThe color of the VisGroup in the editor.
children: Option<Vec<VisGroup>>The child VisGroups of this VisGroup, if any.
extra: ExtrasKeys and blocks this struct does not model.
Implementations§
Trait Implementations§
Source§impl FromBlock for VisGroup
impl FromBlock for VisGroup
Source§fn from_block(block: VmfBlock, ctx: &mut ParseCtx) -> Self
fn from_block(block: VmfBlock, ctx: &mut ParseCtx) -> Self
Parses
block, substituting defaults and logging warnings for missing or invalid values.impl StructuralPartialEq for VisGroup
Source§impl VmfSerializable for VisGroup
impl VmfSerializable for VisGroup
Auto Trait Implementations§
impl Freeze for VisGroup
impl RefUnwindSafe for VisGroup
impl Send for VisGroup
impl Sync for VisGroup
impl Unpin for VisGroup
impl UnsafeUnpin for VisGroup
impl UnwindSafe for VisGroup
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