#[repr(C)]pub struct Rgb8 {
pub r: u8,
pub g: u8,
pub b: u8,
}Expand description
Re-export every public type from the color crate, including all
arithmetic helpers from color::convert.
Downstream modules within this crate can import everything they need with
a single use crate::types::*.
8-bit RGB, 3 bytes/pixel, wire layout [R, G, B].
The most common rasterizer output format, matching SplashModRGB8 in the
C++ side.
Fields§
§r: u8Red channel, 0 = minimum, 255 = full intensity.
g: u8Green channel, 0 = minimum, 255 = full intensity.
b: u8Blue channel, 0 = minimum, 255 = full intensity.
Trait Implementations§
impl Copy for Rgb8
impl Eq for Rgb8
impl Pod for Rgb8
impl StructuralPartialEq for Rgb8
Auto Trait Implementations§
impl Freeze for Rgb8
impl RefUnwindSafe for Rgb8
impl Send for Rgb8
impl Sync for Rgb8
impl Unpin for Rgb8
impl UnsafeUnpin for Rgb8
impl UnwindSafe for Rgb8
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.