Struct fbxcel_dom::v7400::object::property::loaders::PrimitiveLoader
source · pub struct PrimitiveLoader<T>(_);
Expand description
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.
Implementations§
source§impl<T> PrimitiveLoader<T>
impl<T> PrimitiveLoader<T>
Trait Implementations§
source§impl<T> Clone for PrimitiveLoader<T>
impl<T> Clone for PrimitiveLoader<T>
source§impl<T: Debug> Debug for PrimitiveLoader<T>
impl<T: Debug> Debug for PrimitiveLoader<T>
source§impl<T> Default for PrimitiveLoader<T>
impl<T> Default for PrimitiveLoader<T>
source§impl<T: Hash> Hash for PrimitiveLoader<T>
impl<T: Hash> Hash for PrimitiveLoader<T>
source§impl LoadProperty<'_> for PrimitiveLoader<bool>
impl LoadProperty<'_> for PrimitiveLoader<bool>
source§impl LoadProperty<'_> for PrimitiveLoader<f32>
impl LoadProperty<'_> for PrimitiveLoader<f32>
source§impl LoadProperty<'_> for PrimitiveLoader<f64>
impl LoadProperty<'_> for PrimitiveLoader<f64>
source§impl LoadProperty<'_> for PrimitiveLoader<i16>
impl LoadProperty<'_> for PrimitiveLoader<i16>
source§impl LoadProperty<'_> for PrimitiveLoader<i32>
impl LoadProperty<'_> for PrimitiveLoader<i32>
source§impl LoadProperty<'_> for PrimitiveLoader<i64>
impl LoadProperty<'_> for PrimitiveLoader<i64>
source§impl LoadProperty<'_> for PrimitiveLoader<u16>
impl LoadProperty<'_> for PrimitiveLoader<u16>
source§impl LoadProperty<'_> for PrimitiveLoader<u32>
impl LoadProperty<'_> for PrimitiveLoader<u32>
source§impl LoadProperty<'_> for PrimitiveLoader<u64>
impl LoadProperty<'_> for PrimitiveLoader<u64>
source§impl<T: Ord> Ord for PrimitiveLoader<T>
impl<T: Ord> Ord for PrimitiveLoader<T>
source§fn cmp(&self, other: &PrimitiveLoader<T>) -> Ordering
fn cmp(&self, other: &PrimitiveLoader<T>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T: PartialEq> PartialEq<PrimitiveLoader<T>> for PrimitiveLoader<T>
impl<T: PartialEq> PartialEq<PrimitiveLoader<T>> for PrimitiveLoader<T>
source§fn eq(&self, other: &PrimitiveLoader<T>) -> bool
fn eq(&self, other: &PrimitiveLoader<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: PartialOrd> PartialOrd<PrimitiveLoader<T>> for PrimitiveLoader<T>
impl<T: PartialOrd> PartialOrd<PrimitiveLoader<T>> for PrimitiveLoader<T>
source§fn partial_cmp(&self, other: &PrimitiveLoader<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &PrimitiveLoader<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more