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

Bool2([bool; 2])

bool2 type

Bool3([bool; 3])

bool3 type

Bool4([bool; 4])

bool4 type

Int(u32)

int type

Int2([u32; 2])

int2 type

Int3(Box<[u32; 3]>)

int3 type

Int4(Box<[u32; 4]>)

int4 type

Float(f32)

float type

Float2([f32; 2])

float2 type

Float3(Box<[f32; 3]>)

float3 type

Float4(Box<[f32; 4]>)

float4 type

Float2x2(Box<[f32; 4]>)

float2x2 type (linearized)

Float3x3(Box<[f32; 9]>)

float3x3 type (linearized)

Float4x4(Box<[f32; 16]>)

float4x4 type (linearized)

String(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

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.