[][src]Enum weldr::CommandType

pub enum CommandType {
    Category(CategoryCmd),
    Keywords(KeywordsCmd),
    Colour(ColourCmd),
    Comment(CommentCmd),
    SubFileRef(SubFileRefCmd),
    Line(LineCmd),
    Triangle(TriangleCmd),
    Quad(QuadCmd),
    OptLine(OptLineCmd),
}

Types of commands contained in a LDraw file.

Variants

Category(CategoryCmd)
Keywords(KeywordsCmd)
Colour(ColourCmd)
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 Debug for CommandType[src]

impl PartialEq<CommandType> for CommandType[src]

impl StructuralPartialEq for CommandType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.