[−][src]Struct fbxcel_dom::v7400::object::property::loaders::PrimitiveLoader
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]
Trait Implementations
impl<'_> LoadProperty<'_> for PrimitiveLoader<bool>
[src]
type Value = bool
Value type.
type Error = Error
Error type.
fn expecting(&self) -> String
[src]
fn load(self, node: &PropertyHandle) -> Result<Self::Value, Self::Error>
[src]
impl<'_> LoadProperty<'_> for PrimitiveLoader<i16>
[src]
type Value = i16
Value type.
type Error = Error
Error type.
fn expecting(&self) -> String
[src]
fn load(self, node: &PropertyHandle) -> Result<Self::Value, Self::Error>
[src]
impl<'_> LoadProperty<'_> for PrimitiveLoader<u16>
[src]
type Value = u16
Value type.
type Error = Error
Error type.
fn expecting(&self) -> String
[src]
fn load(self, node: &PropertyHandle) -> Result<Self::Value, Self::Error>
[src]
impl<'_> LoadProperty<'_> for PrimitiveLoader<i32>
[src]
type Value = i32
Value type.
type Error = Error
Error type.
fn expecting(&self) -> String
[src]
fn load(self, node: &PropertyHandle) -> Result<Self::Value, Self::Error>
[src]
impl<'_> LoadProperty<'_> for PrimitiveLoader<u32>
[src]
type Value = u32
Value type.
type Error = Error
Error type.
fn expecting(&self) -> String
[src]
fn load(self, node: &PropertyHandle) -> Result<Self::Value, Self::Error>
[src]
impl<'_> LoadProperty<'_> for PrimitiveLoader<i64>
[src]
type Value = i64
Value type.
type Error = Error
Error type.
fn expecting(&self) -> String
[src]
fn load(self, node: &PropertyHandle) -> Result<Self::Value, Self::Error>
[src]
impl<'_> LoadProperty<'_> for PrimitiveLoader<u64>
[src]
type Value = u64
Value type.
type Error = Error
Error type.
fn expecting(&self) -> String
[src]
fn load(self, node: &PropertyHandle) -> Result<Self::Value, Self::Error>
[src]
impl<'_> LoadProperty<'_> for PrimitiveLoader<f32>
[src]
type Value = f32
Value type.
type Error = Error
Error type.
fn expecting(&self) -> String
[src]
fn load(self, node: &PropertyHandle) -> Result<Self::Value, Self::Error>
[src]
impl<'_> LoadProperty<'_> for PrimitiveLoader<f64>
[src]
type Value = f64
Value type.
type Error = Error
Error type.
fn expecting(&self) -> String
[src]
fn load(self, node: &PropertyHandle) -> Result<Self::Value, Self::Error>
[src]
impl<T> Clone for PrimitiveLoader<T>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn cmp(&self, other: &PrimitiveLoader<T>) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<T: PartialEq> PartialEq<PrimitiveLoader<T>> for PrimitiveLoader<T>
[src]
fn eq(&self, other: &PrimitiveLoader<T>) -> bool
[src]
fn ne(&self, other: &PrimitiveLoader<T>) -> bool
[src]
impl<T: PartialOrd> PartialOrd<PrimitiveLoader<T>> for PrimitiveLoader<T>
[src]
fn partial_cmp(&self, other: &PrimitiveLoader<T>) -> Option<Ordering>
[src]
fn lt(&self, other: &PrimitiveLoader<T>) -> bool
[src]
fn le(&self, other: &PrimitiveLoader<T>) -> bool
[src]
fn gt(&self, other: &PrimitiveLoader<T>) -> bool
[src]
fn ge(&self, other: &PrimitiveLoader<T>) -> bool
[src]
impl<T: Debug> Debug for PrimitiveLoader<T>
[src]
impl<T: Hash> Hash for PrimitiveLoader<T>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,