pub struct Rgba16 {
pub r: u16,
pub g: u16,
pub b: u16,
pub a: f32,
}
Fields§
§r: u16
§g: u16
§b: u16
§a: f32
Trait Implementations§
Source§impl ColorspaceImpl for Rgba16
impl ColorspaceImpl for Rgba16
fn to_rgba(&self) -> Rgba
fn to_normalized_rgba(&self) -> NormalizedRgba
fn to_rgba16(&self) -> Rgba16
fn to_normalized_hsla(&self) -> NormalizedHsla
fn to_hsla(&self) -> Hsla
fn darken(&self, percentage: f32) -> Self
fn lighten(&self, percentage: f32) -> Self
Source§impl PartialOrd for Rgba16
impl PartialOrd for Rgba16
impl Copy for Rgba16
impl StructuralPartialEq for Rgba16
Auto Trait Implementations§
impl Freeze for Rgba16
impl RefUnwindSafe for Rgba16
impl Send for Rgba16
impl Sync for Rgba16
impl Unpin for Rgba16
impl UnwindSafe for Rgba16
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