Enum dae_parser::AnnotType[][src]

pub enum AnnotType {
Show 16 variants Bool(bool), Bool2([bool; 2]), Bool3([bool; 3]), Bool4([bool; 4]), Int(u32), Int2([u32; 2]), Int3(Box<[u32; 3]>), Int4(Box<[u32; 4]>), Float(f32), Float2([f32; 2]), Float3(Box<[f32; 3]>), Float4(Box<[f32; 4]>), Float2x2(Box<[f32; 4]>), Float3x3(Box<[f32; 9]>), Float4x4(Box<[f32; 16]>), String(Box<str>),
}
Expand description

A strongly typed value that represents the VALUE in an object of the form SYMBOL = VALUE.

Variants

Bool(bool)

bool type

Tuple Fields of Bool

0: bool
Bool2([bool; 2])

bool2 type

Tuple Fields of Bool2

0: [bool; 2]
Bool3([bool; 3])

bool3 type

Tuple Fields of Bool3

0: [bool; 3]
Bool4([bool; 4])

bool4 type

Tuple Fields of Bool4

0: [bool; 4]
Int(u32)

int type

Tuple Fields of Int

0: u32
Int2([u32; 2])

int2 type

Tuple Fields of Int2

0: [u32; 2]
Int3(Box<[u32; 3]>)

int3 type

Tuple Fields of Int3

0: Box<[u32; 3]>
Int4(Box<[u32; 4]>)

int4 type

Tuple Fields of Int4

0: Box<[u32; 4]>
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]>
Float2x2(Box<[f32; 4]>)

float2x2 type (linearized)

Tuple Fields of Float2x2

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

float3x3 type (linearized)

Tuple Fields of Float3x3

0: Box<[f32; 9]>
Float4x4(Box<[f32; 16]>)

float4x4 type (linearized)

Tuple Fields of Float4x4

0: Box<[f32; 16]>
String(Box<str>)

string type

Tuple Fields of String

0: Box<str>

Implementations

Parse a AnnotType 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.