pub struct RgbaLegacy {
pub red: u8,
pub green: u8,
pub blue: u8,
pub alpha: f32,
}
Expand description
A color with red, green, blue, and alpha components, in a byte each.
Fields§
§red: u8
The red component.
green: u8
The green component.
blue: u8
The blue component.
alpha: f32
The alpha component.
Implementations§
Source§impl RgbaLegacy
impl RgbaLegacy
Trait Implementations§
Source§impl Clone for RgbaLegacy
impl Clone for RgbaLegacy
Source§fn clone(&self) -> RgbaLegacy
fn clone(&self) -> RgbaLegacy
Returns a duplicate 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 Debug for RgbaLegacy
impl Debug for RgbaLegacy
Source§impl PartialEq for RgbaLegacy
impl PartialEq for RgbaLegacy
Source§impl ToCss for RgbaLegacy
impl ToCss for RgbaLegacy
impl Copy for RgbaLegacy
impl StructuralPartialEq for RgbaLegacy
Auto Trait Implementations§
impl Freeze for RgbaLegacy
impl RefUnwindSafe for RgbaLegacy
impl Send for RgbaLegacy
impl Sync for RgbaLegacy
impl Unpin for RgbaLegacy
impl UnwindSafe for RgbaLegacy
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