#[repr(C)]pub struct RG8 {
pub r: u8,
pub g: u8,
}Expand description
Simple RG8 color type to represent colors.
Fields§
§r: u8Represents the red color channel.
g: u8Represents the green color channel.
Implementations§
Trait Implementations§
Source§impl ColorDescriptor for RG8
impl ColorDescriptor for RG8
Source§fn component_type() -> ColorComponentType
fn component_type() -> ColorComponentType
Gets the component type of the color.
Source§fn layout() -> ColorLayoutFormat
fn layout() -> ColorLayoutFormat
Gets the layout of the color.
impl Copy for RG8
impl Eq for RG8
impl StructuralPartialEq for RG8
Auto Trait Implementations§
impl Freeze for RG8
impl RefUnwindSafe for RG8
impl Send for RG8
impl Sync for RG8
impl Unpin for RG8
impl UnwindSafe for RG8
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