[−][src]Enum abxml::model::Value
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
StringReference(u32)Represents an index on a StringTable
Dimension(String)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
Fraction(String)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
Float(f32)Represents a float value
Integer(u32)Represents an integer value
Flags(u32)Integer value that should be interpreted as a bit flag array
Boolean(bool)Represents a boolean value
ColorARGB8(String)Represents a ARGB8 color
ColorRGB8(String)Represents a RGB8 color
ColorARGB4(String)Represents a ARGB4 color
ColorRGB4(String)Represents a RGB4 color
ReferenceId(u32)Represents a reference to an Entry
AttributeReferenceId(u32)Represents a reference to an Entry on attribute context
Unknown(u8, u32)Unknown value. It saves the type and the payload in case that needs to be checked
Methods
impl Value[src]
pub fn create(value_type: u8, data: u32) -> Result<Self, Error>[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
fn complex(data: u32) -> f32[src]
Trait Implementations
Auto Trait Implementations
impl Unpin for Value
impl Sync for Value
impl Send for Value
impl UnwindSafe for Value
impl RefUnwindSafe for Value
Blanket Implementations
impl<T> From<T> for T[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,