pub struct ColorRGBA8888(/* private fields */);
Implementations§
Source§impl ColorRGBA8888
impl ColorRGBA8888
pub const fn new(red: u8, green: u8, blue: u8, alpha: u8) -> Self
pub const fn from_rgb565(value: ColorRGB565) -> Self
pub const fn as_u32(self) -> u32
pub const fn get_red(&self) -> u8
pub const fn get_green(&self) -> u8
pub const fn get_blue(&self) -> u8
pub const fn get_alpha(&self) -> u8
pub const fn set_red(self, value: u8) -> Self
pub const fn set_green(self, value: u8) -> Self
pub const fn set_blue(self, value: u8) -> Self
pub const fn set_alpha(self, value: u8) -> Self
Trait Implementations§
Source§impl Clone for ColorRGBA8888
impl Clone for ColorRGBA8888
Source§fn clone(&self) -> ColorRGBA8888
fn clone(&self) -> ColorRGBA8888
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 ColorRGBA8888
impl Debug for ColorRGBA8888
Source§impl From<ColorARGB8888> for ColorRGBA8888
impl From<ColorARGB8888> for ColorRGBA8888
Source§fn from(value: ColorARGB8888) -> Self
fn from(value: ColorARGB8888) -> Self
Converts to this type from the input type.
Source§impl From<ColorRGB565> for ColorRGBA8888
impl From<ColorRGB565> for ColorRGBA8888
Source§fn from(value: ColorRGB565) -> Self
fn from(value: ColorRGB565) -> Self
Converts to this type from the input type.
Source§impl From<ColorRGBA8888> for ColorARGB8888
impl From<ColorRGBA8888> for ColorARGB8888
Source§fn from(value: ColorRGBA8888) -> Self
fn from(value: ColorRGBA8888) -> Self
Converts to this type from the input type.
Source§impl From<ColorRGBA8888> for ColorRGB565
impl From<ColorRGBA8888> for ColorRGB565
Source§fn from(value: ColorRGBA8888) -> Self
fn from(value: ColorRGBA8888) -> Self
Converts to this type from the input type.
Source§impl From<ColorRGBA8888> for u32
impl From<ColorRGBA8888> for u32
Source§fn from(value: ColorRGBA8888) -> u32
fn from(value: ColorRGBA8888) -> u32
Converts to this type from the input type.
Source§impl From<u32> for ColorRGBA8888
impl From<u32> for ColorRGBA8888
Source§impl PartialEq for ColorRGBA8888
impl PartialEq for ColorRGBA8888
impl Copy for ColorRGBA8888
impl Eq for ColorRGBA8888
impl StructuralPartialEq for ColorRGBA8888
Auto Trait Implementations§
impl Freeze for ColorRGBA8888
impl RefUnwindSafe for ColorRGBA8888
impl Send for ColorRGBA8888
impl Sync for ColorRGBA8888
impl Unpin for ColorRGBA8888
impl UnwindSafe for ColorRGBA8888
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