pub struct RgbColor<T = f32> {
pub r: T,
pub g: T,
pub b: T,
}Expand description
RGB color with configurable component type.
Fields§
§r: TRed component
g: TGreen component
b: TBlue component
Implementations§
Trait Implementations§
impl<T: Copy> Copy for RgbColor<T>
Auto Trait Implementations§
impl<T> Freeze for RgbColor<T>where
T: Freeze,
impl<T> RefUnwindSafe for RgbColor<T>where
T: RefUnwindSafe,
impl<T> Send for RgbColor<T>where
T: Send,
impl<T> Sync for RgbColor<T>where
T: Sync,
impl<T> Unpin for RgbColor<T>where
T: Unpin,
impl<T> UnsafeUnpin for RgbColor<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for RgbColor<T>where
T: UnwindSafe,
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