pub struct NormalizedRgba {
pub r: f32,
pub g: f32,
pub b: f32,
pub a: f32,
}
Fields§
§r: f32
§g: f32
§b: f32
§a: f32
Trait Implementations§
Source§impl Clone for NormalizedRgba
impl Clone for NormalizedRgba
Source§fn clone(&self) -> NormalizedRgba
fn clone(&self) -> NormalizedRgba
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl ColorspaceImpl for NormalizedRgba
impl ColorspaceImpl for NormalizedRgba
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 Debug for NormalizedRgba
impl Debug for NormalizedRgba
Source§impl Display for NormalizedRgba
impl Display for NormalizedRgba
Source§impl From<NormalizedRgba> for Solid
impl From<NormalizedRgba> for Solid
Source§fn from(rgba: NormalizedRgba) -> Self
fn from(rgba: NormalizedRgba) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NormalizedRgba
impl PartialEq for NormalizedRgba
Source§impl PartialOrd for NormalizedRgba
impl PartialOrd for NormalizedRgba
impl Copy for NormalizedRgba
impl StructuralPartialEq for NormalizedRgba
Auto Trait Implementations§
impl Freeze for NormalizedRgba
impl RefUnwindSafe for NormalizedRgba
impl Send for NormalizedRgba
impl Sync for NormalizedRgba
impl Unpin for NormalizedRgba
impl UnwindSafe for NormalizedRgba
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