[][src]Enum jomini::BinaryToken

pub enum BinaryToken {
    Array(usize),
    Object(usize),
    End(usize),
    Bool(bool),
    U32(u32),
    U64(u64),
    I32(i32),
    Text(usize),
    F32(f32),
    Q16(f32),
    Token(u16),
    Rgb(usize),
}

Represents any valid binary value

Variants

Array(usize)

Index of the BinaryToken::End that signifies this array's termination

Object(usize)

Index of the BinaryToken::End that signifies this object's termination

End(usize)

Index of the start of this object

Bool(bool)

Represents a binary boolean.

U32(u32)

Represents a binary unsigned 32bit integer

U64(u64)

Represents a binary unsigned 64bit integer

I32(i32)

Represents a binary signed 32bit integer

Text(usize)

Index of the data_tape that contains the extracted scalar value

F32(f32)

Represents a binary 32bit floating point number

Q16(f32)

Represents a binary Q16.16 floating point number

Token(u16)

Represents a 16bit token key that can be resolved to an equivalent textual representation.

Rgb(usize)

Index of the rgb_tape that contains the extracted rgb value

Trait Implementations

impl Debug for BinaryToken[src]

impl PartialEq<BinaryToken> for BinaryToken[src]

impl StructuralPartialEq for BinaryToken[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.