Enum abxml::model::Value [] [src]

pub enum Value {
    StringReference(u32),
    Dimension(String),
    Fraction(String),
    Float(f32),
    Integer(u32),
    Flags(u32),
    Boolean(bool),
    ColorARGB8(String),
    ColorRGB8(String),
    ColorARGB4(String),
    ColorRGB4(String),
    ReferenceId(u32),
    AttributeReferenceId(u32),
    Unknown(u8u32),
}

Represents a value on the binary documents. It is formed by a type and a 32 bits payload. The payloads are interpreted depending on the type.

Variants

Represents an index on a StringTable

Represents a dimension. Bits [31..8] represents the numeric value. Bits [7..4] is an index on a lookup table that modified the numeric value. Bits [3..0] is an index on a dimensions lookup table

Represents a fraction. Bits [31..8] represents the numeric value. Bits [7..4] seems to be unused. Bits [3..0] is an index on a units lookup table

Represents a float value

Represents an integer value

Integer value that should be interpreted as a bit flag array

Represents a boolean value

Represents a ARGB8 color

Represents a RGB8 color

Represents a ARGB4 color

Represents a RGB4 color

Represents a reference to an Entry

Represents a reference to an Entry on attribute context

Unknown value. It saves the type and the payload in case that needs to be checked

Methods

impl Value
[src]

Creates a new Value. If the payload can not be interpreted by the given value_type, it will return an error. If the type is not know, it will return Value::Unknown

Trait Implementations

impl Debug for Value
[src]

Formats the value using the given formatter.

impl ToString for Value
[src]

Converts the given value to a String. Read more