Struct cssparser_color::RgbaLegacy
source · 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 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 Debug for RgbaLegacy
impl Debug for RgbaLegacy
source§impl PartialEq<RgbaLegacy> for RgbaLegacy
impl PartialEq<RgbaLegacy> for RgbaLegacy
source§fn eq(&self, other: &RgbaLegacy) -> bool
fn eq(&self, other: &RgbaLegacy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ToCss for RgbaLegacy
impl ToCss for RgbaLegacy
impl Copy for RgbaLegacy
impl StructuralPartialEq for RgbaLegacy
Auto Trait Implementations§
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