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
sourceimpl<T> PrimitiveLoader<T>
impl<T> PrimitiveLoader<T>
Trait Implementations
sourceimpl<T> Clone for PrimitiveLoader<T>
impl<T> Clone for PrimitiveLoader<T>
sourceimpl<T: Debug> Debug for PrimitiveLoader<T>
impl<T: Debug> Debug for PrimitiveLoader<T>
sourceimpl<T> Default for PrimitiveLoader<T>
impl<T> Default for PrimitiveLoader<T>
sourceimpl<T: Hash> Hash for PrimitiveLoader<T>
impl<T: Hash> Hash for PrimitiveLoader<T>
sourceimpl LoadProperty<'_> for PrimitiveLoader<bool>
impl LoadProperty<'_> for PrimitiveLoader<bool>
sourceimpl LoadProperty<'_> for PrimitiveLoader<f32>
impl LoadProperty<'_> for PrimitiveLoader<f32>
sourceimpl LoadProperty<'_> for PrimitiveLoader<f64>
impl LoadProperty<'_> for PrimitiveLoader<f64>
sourceimpl LoadProperty<'_> for PrimitiveLoader<i16>
impl LoadProperty<'_> for PrimitiveLoader<i16>
sourceimpl LoadProperty<'_> for PrimitiveLoader<i32>
impl LoadProperty<'_> for PrimitiveLoader<i32>
sourceimpl LoadProperty<'_> for PrimitiveLoader<i64>
impl LoadProperty<'_> for PrimitiveLoader<i64>
sourceimpl LoadProperty<'_> for PrimitiveLoader<u16>
impl LoadProperty<'_> for PrimitiveLoader<u16>
sourceimpl LoadProperty<'_> for PrimitiveLoader<u32>
impl LoadProperty<'_> for PrimitiveLoader<u32>
sourceimpl LoadProperty<'_> for PrimitiveLoader<u64>
impl LoadProperty<'_> for PrimitiveLoader<u64>
sourceimpl<T: Ord> Ord for PrimitiveLoader<T>
impl<T: Ord> Ord for PrimitiveLoader<T>
sourcefn cmp(&self, other: &PrimitiveLoader<T>) -> Ordering
fn cmp(&self, other: &PrimitiveLoader<T>) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<T: PartialEq> PartialEq<PrimitiveLoader<T>> for PrimitiveLoader<T>
impl<T: PartialEq> PartialEq<PrimitiveLoader<T>> for PrimitiveLoader<T>
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &PrimitiveLoader<T>) -> bool
fn ne(&self, other: &PrimitiveLoader<T>) -> bool
This method tests for !=
.
sourceimpl<T: PartialOrd> PartialOrd<PrimitiveLoader<T>> for PrimitiveLoader<T>
impl<T: PartialOrd> PartialOrd<PrimitiveLoader<T>> for PrimitiveLoader<T>
sourcefn partial_cmp(&self, other: &PrimitiveLoader<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &PrimitiveLoader<T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
impl<T> Copy for PrimitiveLoader<T>
impl<T: Eq> Eq for PrimitiveLoader<T>
impl<T> StructuralEq for PrimitiveLoader<T>
impl<T> StructuralPartialEq for PrimitiveLoader<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for PrimitiveLoader<T>
impl<T> Send for PrimitiveLoader<T>
impl<T> Sync for PrimitiveLoader<T>
impl<T> Unpin for PrimitiveLoader<T>
impl<T> UnwindSafe for PrimitiveLoader<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more