Enum typeinfo::Type [] [src]

pub enum Type {
    Int8,
    Int16,
    Int32,
    Int64,
    UInt8,
    UInt16,
    UInt32,
    UInt64,
    Float32,
    Float64,
    Char,
    Bool,
    Array(Box<Type>, usize),
    Compound(Vec<Field>, usize),
}

Represents a POD type: scalar, fixed-size array or compound (struct). May be arbitrarily nested.

Variants

1-byte signed integer

2-byte signed integer

4-byte signed integer

8-byte signed integer

1-byte unsigned integer

2-byte unsigned integer

3-byte unsigned integer

4-byte unsigned integer

4-byte floating-point number

8-byte floating-point number

4-byte unicode character type

1-byte boolean type

fixed-size array with POD elements

compound type whose fields are POD

Methods

impl Type
[src]

Returns the total size of a type value in bytes.

Returns true if the underlying type is a scalar.

Returns true if the underlying type is a fixed-size array.

Returns true if the underlying type is compound.

Trait Implementations

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 Debug for Type
[src]

Formats the value using the given formatter.