Struct raqote::SolidSource
source · pub struct SolidSource {
pub r: u8,
pub g: u8,
pub b: u8,
pub a: u8,
}
Expand description
A premultiplied color. i.e. r,b,g <= a
Fields§
§r: u8
§g: u8
§b: u8
§a: u8
Implementations§
Trait Implementations§
source§impl Clone for SolidSource
impl Clone for SolidSource
source§fn clone(&self) -> SolidSource
fn clone(&self) -> SolidSource
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 SolidSource
impl Debug for SolidSource
source§impl From<Color> for SolidSource
impl From<Color> for SolidSource
source§impl From<SolidSource> for Source<'_>
impl From<SolidSource> for Source<'_>
source§fn from(other: SolidSource) -> Self
fn from(other: SolidSource) -> Self
Converts to this type from the input type.
source§impl PartialEq for SolidSource
impl PartialEq for SolidSource
impl Copy for SolidSource
impl StructuralPartialEq for SolidSource
Auto Trait Implementations§
impl Freeze for SolidSource
impl RefUnwindSafe for SolidSource
impl Send for SolidSource
impl Sync for SolidSource
impl Unpin for SolidSource
impl UnwindSafe for SolidSource
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)