Enum binpool::Type [] [src]

pub enum Type {
    U8,
    U16,
    U32,
    U64,
    I8,
    I16,
    I32,
    I64,
    F32,
    F64,
}

Type format for a property.

Variants

Unsigned 8 bit integer.

Unsigned 16 bit integer.

Unsigned 32 bit integer.

Unsigned 64 bit integer.

Signed 8 bit integer.

Signed 16 bit integer.

Signed 32 bit integer.

Signed 64 bit integer.

32 bit float.

64 bit float.

Methods

impl Type
[src]

A unique number representing each type.

Returns the size of type in bytes.

Returns the type format and size in bytes for a matrix.

Notice that this method uses rows and columns, not width and height.

Returns None if the matrix exceed dimensions 80x80. Returns None if the width or height is zero.

Returns the type format and size in bytes for a scalar.

Returns the type format and size in bytes for a vector.

Returns None if the vector exceed dimension 80. Returns None if the vector has dimension zero.

Returns the offset for specifying a custom format.

Returns the number of available custom formats.

Returns the type and matrix dimensions from type format.

Trait Implementations

impl Copy for Type
[src]

impl Clone for Type
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Type
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Type
[src]

impl Debug for Type
[src]

Formats the value using the given formatter.