Struct gltf_json::extensions::material::AttenuationDistance
source · pub struct AttenuationDistance(pub f32);
Expand description
A number in the inclusive range [0.0, +inf] with a default value of +inf.
Tuple Fields§
§0: f32
Trait Implementations§
source§impl Clone for AttenuationDistance
impl Clone for AttenuationDistance
source§fn clone(&self) -> AttenuationDistance
fn clone(&self) -> AttenuationDistance
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 AttenuationDistance
impl Debug for AttenuationDistance
source§impl Default for AttenuationDistance
impl Default for AttenuationDistance
source§impl<'de> Deserialize<'de> for AttenuationDistance
impl<'de> Deserialize<'de> for AttenuationDistance
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 AttenuationDistance
impl Serialize for AttenuationDistance
source§impl Validate for AttenuationDistance
impl Validate for AttenuationDistance
impl Copy for AttenuationDistance
Auto Trait Implementations§
impl RefUnwindSafe for AttenuationDistance
impl Send for AttenuationDistance
impl Sync for AttenuationDistance
impl Unpin for AttenuationDistance
impl UnwindSafe for AttenuationDistance
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