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