pub struct RGB24 { /* private fields */ }
Implementations§
Source§impl RGB24
impl RGB24
pub fn sum(self) -> i32
pub fn gray(self) -> u8
pub fn min_element(self) -> u8
pub fn max_element(self) -> u8
pub fn clamp(self, min: Self, max: Self) -> Self
pub fn min(self, rhs: Self) -> Self
pub fn max(self, rhs: Self) -> Self
pub fn saturate(self) -> Self
Source§impl RGB24
impl RGB24
pub fn to_array(self) -> [u8; 3]
pub fn to_tuple(self) -> (u8, u8, u8)
pub fn to_rgb(self) -> RGB
pub fn to_rgbf(self) -> RGBf
pub fn to_rgba(self) -> RGBA
pub fn to_rgba_alpha(self, alpha: f64) -> RGBA
pub fn to_rgbaf(self) -> RGBAf
pub fn to_rgbaf_alpha(self, alpha: f32) -> RGBAf
pub fn to_rgba32(self) -> RGBA32
pub fn to_rgba32_alpha(self, alpha: u8) -> RGBA32
Trait Implementations§
impl Copy for RGB24
impl StructuralPartialEq for RGB24
Auto Trait Implementations§
impl Freeze for RGB24
impl RefUnwindSafe for RGB24
impl Send for RGB24
impl Sync for RGB24
impl Unpin for RGB24
impl UnwindSafe for RGB24
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