pub enum Command {
Category(CategoryCmd),
Keywords(KeywordsCmd),
Colour(ColourCmd),
Comment(CommentCmd),
SubFileRef(SubFileRefCmd),
Line(LineCmd),
Triangle(TriangleCmd),
Quad(QuadCmd),
OptLine(OptLineCmd),
}
Expand description
Types of commands contained in a LDraw file.
Variants§
Category(CategoryCmd)
Line Type 0 META command: !CATEGORY language extension.
Keywords(KeywordsCmd)
Line Type 0 META command: !KEYWORDS language extension.
Colour(ColourCmd)
Line Type 0 META command: !COLOUR language extension.
Comment(CommentCmd)
Line Type 0 comment. Note: any line type 0 not otherwise parsed as a known meta-command is parsed as a generic comment.
SubFileRef(SubFileRefCmd)
Line Type 1 sub-file reference.
Line(LineCmd)
Line Type 2 segment.
Triangle(TriangleCmd)
Line Type 3 triangle.
Quad(QuadCmd)
Line Type 4 quadrilateral.
OptLine(OptLineCmd)
Line Type 5 optional line.
Trait Implementations§
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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