pub struct RGBA32 { /* private fields */ }
Implementations
sourceimpl RGBA32
impl RGBA32
pub fn new(r: u8, g: u8, b: u8, a: u8) -> Self
pub fn black() -> Self
pub fn white() -> Self
pub fn red() -> Self
pub fn green() -> Self
pub fn blue() -> Self
pub fn black_alpha(alpha: u8) -> Self
pub fn white_alpha(alpha: u8) -> Self
pub fn red_alpha(alpha: u8) -> Self
pub fn green_alpha(alpha: u8) -> Self
pub fn blue_alpha(alpha: u8) -> Self
pub fn r(self) -> u8
pub fn g(self) -> u8
pub fn b(self) -> u8
pub fn a(self) -> u8
sourceimpl RGBA32
impl RGBA32
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
Trait Implementations
impl Copy for RGBA32
impl StructuralPartialEq for RGBA32
Auto Trait Implementations
impl RefUnwindSafe for RGBA32
impl Send for RGBA32
impl Sync for RGBA32
impl Unpin for RGBA32
impl UnwindSafe for RGBA32
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