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: u8The red component.
green: u8The green component.
blue: u8The blue component.
alpha: f32The 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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RgbaLegacy
Source§impl Debug for RgbaLegacy
impl Debug for RgbaLegacy
Source§impl PartialEq for RgbaLegacy
impl PartialEq for RgbaLegacy
Source§fn eq(&self, other: &RgbaLegacy) -> bool
fn eq(&self, other: &RgbaLegacy) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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