Enum dae_parser::Primitive[][src]

pub enum Primitive {
    Lines(Lines),
    LineStrips(LineStrips),
    Polygons(Polygons),
    PolyList(PolyList),
    Triangles(Triangles),
    TriFans(TriFans),
    TriStrips(TriStrips),
}
Expand description

A collection of primitive elements.

Variants

Lines(Lines)

Line primitives.

Tuple Fields of Lines

0: Lines
LineStrips(LineStrips)

Line-strip primitives.

Tuple Fields of LineStrips

0: LineStrips
Polygons(Polygons)

Polygon primitives which may contain holes.

Tuple Fields of Polygons

0: Polygons
PolyList(PolyList)

Polygon primitives that cannot contain holes.

Tuple Fields of PolyList

0: PolyList
Triangles(Triangles)

Triangle primitives.

Tuple Fields of Triangles

0: Triangles
TriFans(TriFans)

Triangle-fan primitives.

Tuple Fields of TriFans

0: TriFans
TriStrips(TriStrips)

Triangle-strip primitives.

Tuple Fields of TriStrips

0: TriStrips

Implementations

Parse a Primitive from an XML element.

An accessor for the variant.

An accessor for the variant.

An accessor for the variant.

An accessor for the variant.

An accessor for the variant.

An accessor for the variant.

An accessor for the variant.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.