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)

Tuple Fields

0: bool

bool type

Bool2([bool; 2])

Tuple Fields

bool2 type

Bool3([bool; 3])

Tuple Fields

bool3 type

Bool4([bool; 4])

Tuple Fields

bool4 type

Int(u32)

Tuple Fields

0: u32

int type

Int2([u32; 2])

Tuple Fields

int2 type

Int3(Box<[u32; 3]>)

Tuple Fields

int3 type

Int4(Box<[u32; 4]>)

Tuple Fields

int4 type

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

Float2x2(Box<[f32; 4]>)

Tuple Fields

float2x2 type (linearized)

Float3x3(Box<[f32; 9]>)

Tuple Fields

float3x3 type (linearized)

Float4x4(Box<[f32; 16]>)

Tuple Fields

float4x4 type (linearized)

String(Box<str>)

Tuple Fields

0: Box<str>

string type

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

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

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.