Enum naga::proc::IndexableLength[][src]

pub enum IndexableLength {
    Known(u32),
    Specializable(Handle<Constant>),
    Dynamic,
}
Expand description

The number of elements in an indexable type.

This summarizes the length of vectors, matrices, and arrays in a way that is convenient for indexing and bounds-checking code.

Variants

Known(u32)

Values of this type always have the given number of elements.

Tuple Fields of Known

0: u32
Specializable(Handle<Constant>)

The value of the given specializable constant is the number of elements. (Non-specializable constants are reported as Known.)

Tuple Fields of Specializable

0: Handle<Constant>
Dynamic

The number of elements is determined at runtime.

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 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.