Enum dae_parser::ParamType[][src]

pub enum ParamType {
    Float(f32),
    Float2([f32; 2]),
    Float3(Box<[f32; 3]>),
    Float4(Box<[f32; 4]>),
    Surface(Box<Surface>),
    Sampler2D(Box<Sampler2D>),
    Other(Box<Element>),
}
Expand description

A parameter’s type. We do not have full support here, but unknown types can be retrieved in the Other variant.

Variants

Float(f32)

Tuple Fields

0: f32

float type

Float2([f32; 2])

Tuple Fields

float2 type

Float3(Box<[f32; 3]>)

Tuple Fields

float3 type

Float4(Box<[f32; 4]>)

Tuple Fields

float4 type

Surface(Box<Surface>)

Tuple Fields

surface type

Sampler2D(Box<Sampler2D>)

Tuple Fields

sampler2D type

Other(Box<Element>)

Tuple Fields

Any other type, stored as a raw XML element.

Implementations

Parse a ParamType from an XML element.

Downcast this element to a Surface.

Downcast this element to a Sampler2D.

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

Performs the conversion.

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)

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.