pub struct MaterialDetails {
pub brightness: i8,
pub contrast: f32,
pub hue: u16,
pub saturation: f32,
pub lightness: f32,
pub rgb: RGB,
}Fields§
§brightness: i8§contrast: f32§hue: u16§saturation: f32§lightness: f32§rgb: RGBTrait Implementations§
Source§impl Clone for MaterialDetails
impl Clone for MaterialDetails
Source§fn clone(&self) -> MaterialDetails
fn clone(&self) -> MaterialDetails
Returns a duplicate 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 MaterialDetails
impl Debug for MaterialDetails
Source§impl<'de> Deserialize<'de> for MaterialDetails
impl<'de> Deserialize<'de> for MaterialDetails
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 PartialEq for MaterialDetails
impl PartialEq for MaterialDetails
Source§impl Serialize for MaterialDetails
impl Serialize for MaterialDetails
impl StructuralPartialEq for MaterialDetails
Auto Trait Implementations§
impl Freeze for MaterialDetails
impl RefUnwindSafe for MaterialDetails
impl Send for MaterialDetails
impl Sync for MaterialDetails
impl Unpin for MaterialDetails
impl UnwindSafe for MaterialDetails
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more