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)

float type

Tuple Fields of Float

0: f32
Float2([f32; 2])

float2 type

Tuple Fields of Float2

0: [f32; 2]
Float3(Box<[f32; 3]>)

float3 type

Tuple Fields of Float3

0: Box<[f32; 3]>
Float4(Box<[f32; 4]>)

float4 type

Tuple Fields of Float4

0: Box<[f32; 4]>
Surface(Box<Surface>)

surface type

Tuple Fields of Surface

0: Box<Surface>
Sampler2D(Box<Sampler2D>)

sampler2D type

Tuple Fields of Sampler2D

0: Box<Sampler2D>
Other(Box<Element>)

Any other type, stored as a raw XML element.

Tuple Fields of Other

0: Box<Element>

Implementations

Parse a ParamType from an XML element.

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.