Struct gltf_json::material::StrengthFactor
source · pub struct StrengthFactor(pub f32);
Expand description
A number in the inclusive range [0.0, 1.0] with a default value of 1.0.
Tuple Fields§
§0: f32
Trait Implementations§
source§impl Clone for StrengthFactor
impl Clone for StrengthFactor
source§fn clone(&self) -> StrengthFactor
fn clone(&self) -> StrengthFactor
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StrengthFactor
impl Debug for StrengthFactor
source§impl Default for StrengthFactor
impl Default for StrengthFactor
source§impl<'de> Deserialize<'de> for StrengthFactor
impl<'de> Deserialize<'de> for StrengthFactor
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for StrengthFactor
impl Serialize for StrengthFactor
source§impl Validate for StrengthFactor
impl Validate for StrengthFactor
impl Copy for StrengthFactor
Auto Trait Implementations§
impl RefUnwindSafe for StrengthFactor
impl Send for StrengthFactor
impl Sync for StrengthFactor
impl Unpin for StrengthFactor
impl UnwindSafe for StrengthFactor
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more