pub struct Solid {
pub id: u64,
pub sides: Vec<Side>,
pub editor: Editor,
pub extra: Extras,
}Expand description
Represents a solid object in the VMF world.
Fields§
§id: u64The unique ID of the solid.
sides: Vec<Side>The sides of the solid.
editor: EditorThe editor data for the solid.
extra: ExtrasKeys and blocks this struct does not model.
Trait Implementations§
Source§impl FromBlock for Solid
impl FromBlock for Solid
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 Solid
Source§impl VmfSerializable for Solid
impl VmfSerializable for Solid
Auto Trait Implementations§
impl Freeze for Solid
impl RefUnwindSafe for Solid
impl Send for Solid
impl Sync for Solid
impl Unpin for Solid
impl UnsafeUnpin for Solid
impl UnwindSafe for Solid
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