pub struct RGBA32 { /* private fields */ }
Implementations§
Source§impl 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
Source§impl 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 Freeze for RGBA32
impl RefUnwindSafe for RGBA32
impl Send for RGBA32
impl Sync for RGBA32
impl Unpin for RGBA32
impl UnwindSafe for RGBA32
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