[−][src]Struct fbxcel_dom::v7400::object::property::loaders::RgbLoader
rgb
crate color type 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.
Note that f32
and f64
is NOT converted automatically by this loader.
Methods
impl<T> RgbLoader<T>
[src]
Trait Implementations
impl<'_> LoadProperty<'_> for RgbLoader<RGB<f32>>
[src]
type Value = RGB<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 RgbLoader<RGB<f64>>
[src]
type Value = RGB<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<'_> LoadProperty<'_> for RgbLoader<RGBA<f32>>
[src]
type Value = RGBA<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 RgbLoader<RGBA<f64>>
[src]
type Value = RGBA<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 RgbLoader<T>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Copy for RgbLoader<T>
[src]
impl<T> Default for RgbLoader<T>
[src]
impl<T: Eq> Eq for RgbLoader<T>
[src]
impl<T: Ord> Ord for RgbLoader<T>
[src]
fn cmp(&self, other: &RgbLoader<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<RgbLoader<T>> for RgbLoader<T>
[src]
impl<T: PartialOrd> PartialOrd<RgbLoader<T>> for RgbLoader<T>
[src]
fn partial_cmp(&self, other: &RgbLoader<T>) -> Option<Ordering>
[src]
fn lt(&self, other: &RgbLoader<T>) -> bool
[src]
fn le(&self, other: &RgbLoader<T>) -> bool
[src]
fn gt(&self, other: &RgbLoader<T>) -> bool
[src]
fn ge(&self, other: &RgbLoader<T>) -> bool
[src]
impl<T: Debug> Debug for RgbLoader<T>
[src]
impl<T: Hash> Hash for RgbLoader<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 RgbLoader<T>
[src]
impl<T> StructuralEq for RgbLoader<T>
[src]
Auto Trait Implementations
impl<T> Send for RgbLoader<T>
impl<T> Sync for RgbLoader<T>
impl<T> Unpin for RgbLoader<T>
impl<T> UnwindSafe for RgbLoader<T>
impl<T> RefUnwindSafe for RgbLoader<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,