pub struct RGB24 { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl 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 RefUnwindSafe for RGB24
impl Send for RGB24
impl Sync for RGB24
impl Unpin for RGB24
impl UnwindSafe for RGB24
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more