[][src]Struct fbxcel_dom::v7400::object::property::loaders::PrimitiveLoader

pub struct PrimitiveLoader<T>(_);

Primitive type value loader.

This does minimal checks about data_type and label. If you want to check property type precisely, you should make another loader type by purpose.

This loader automatically does safe conversion, i.e. you can load i32 value from raw i16 attribute.

Note that f32 and f64 will be implicitly converted in both directions by this loader.

Methods

impl<T> PrimitiveLoader<T>[src]

pub fn new() -> Self[src]

Creates a new PrimitiveLoader.

Trait Implementations

impl<'_> LoadProperty<'_> for PrimitiveLoader<bool>[src]

type Value = bool

Value type.

type Error = Error

Error type.

impl<'_> LoadProperty<'_> for PrimitiveLoader<i16>[src]

type Value = i16

Value type.

type Error = Error

Error type.

impl<'_> LoadProperty<'_> for PrimitiveLoader<u16>[src]

type Value = u16

Value type.

type Error = Error

Error type.

impl<'_> LoadProperty<'_> for PrimitiveLoader<i32>[src]

type Value = i32

Value type.

type Error = Error

Error type.

impl<'_> LoadProperty<'_> for PrimitiveLoader<u32>[src]

type Value = u32

Value type.

type Error = Error

Error type.

impl<'_> LoadProperty<'_> for PrimitiveLoader<i64>[src]

type Value = i64

Value type.

type Error = Error

Error type.

impl<'_> LoadProperty<'_> for PrimitiveLoader<u64>[src]

type Value = u64

Value type.

type Error = Error

Error type.

impl<'_> LoadProperty<'_> for PrimitiveLoader<f32>[src]

type Value = f32

Value type.

type Error = Error

Error type.

impl<'_> LoadProperty<'_> for PrimitiveLoader<f64>[src]

type Value = f64

Value type.

type Error = Error

Error type.

impl<T> Clone for PrimitiveLoader<T>[src]

impl<T> Copy for PrimitiveLoader<T>[src]

impl<T> Default for PrimitiveLoader<T>[src]

impl<T: Eq> Eq for PrimitiveLoader<T>[src]

impl<T: Ord> Ord for PrimitiveLoader<T>[src]

impl<T: PartialEq> PartialEq<PrimitiveLoader<T>> for PrimitiveLoader<T>[src]

impl<T: PartialOrd> PartialOrd<PrimitiveLoader<T>> for PrimitiveLoader<T>[src]

impl<T: Debug> Debug for PrimitiveLoader<T>[src]

impl<T: Hash> Hash for PrimitiveLoader<T>[src]

impl<T> StructuralPartialEq for PrimitiveLoader<T>[src]

impl<T> StructuralEq for PrimitiveLoader<T>[src]

Auto Trait Implementations

impl<T> Send for PrimitiveLoader<T>

impl<T> Sync for PrimitiveLoader<T>

impl<T> Unpin for PrimitiveLoader<T>

impl<T> UnwindSafe for PrimitiveLoader<T>

impl<T> RefUnwindSafe for PrimitiveLoader<T>

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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