pub struct Rgb<S: Sample> {
pub r: S,
pub g: S,
pub b: S,
}Expand description
An RGB pixel with three components.
Fields§
§r: S§g: S§b: SImplementations§
Trait Implementations§
impl<S: Copy + Sample> Copy for Rgb<S>
impl<S: Sample> StructuralPartialEq for Rgb<S>
Auto Trait Implementations§
impl<S> Freeze for Rgb<S>where
S: Freeze,
impl<S> RefUnwindSafe for Rgb<S>where
S: RefUnwindSafe,
impl<S> Send for Rgb<S>
impl<S> Sync for Rgb<S>
impl<S> Unpin for Rgb<S>where
S: Unpin,
impl<S> UnsafeUnpin for Rgb<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Rgb<S>where
S: 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