[−][src]Struct sixtyfps_corelib::RgbaColor
RgbaColor stores the red, green, blue and alpha components of a color
with the precision of the generic parameter T. For example if T is f32,
the values are normalized between 0 and 1. If T is u8, they values range
is 0 to 255.
This is merely a helper class for use with Color.
Fields
alpha: TThe alpha component.
red: TThe red channel.
green: TThe green channel.
blue: TThe blue channel.
Trait Implementations
impl<T: Clone> Clone for RgbaColor<T>[src]
impl<T: Copy> Copy for RgbaColor<T>[src]
impl<T: Debug> Debug for RgbaColor<T>[src]
impl<T: Default> Default for RgbaColor<T>[src]
impl From<Color> for RgbaColor<u8>[src]
impl From<Color> for RgbaColor<f32>[src]
impl From<RgbaColor<f32>> for Color[src]
impl From<RgbaColor<u8>> for Color[src]
impl From<RgbaColor<u8>> for RgbaColor<f32>[src]
impl<T: PartialEq> PartialEq<RgbaColor<T>> for RgbaColor<T>[src]
pub fn eq(&self, other: &RgbaColor<T>) -> bool[src]
pub fn ne(&self, other: &RgbaColor<T>) -> bool[src]
impl<T> StructuralPartialEq for RgbaColor<T>[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for RgbaColor<T> where
T: RefUnwindSafe, [src]
T: RefUnwindSafe,
impl<T> Send for RgbaColor<T> where
T: Send, [src]
T: Send,
impl<T> Sync for RgbaColor<T> where
T: Sync, [src]
T: Sync,
impl<T> Unpin for RgbaColor<T> where
T: Unpin, [src]
T: Unpin,
impl<T> UnwindSafe for RgbaColor<T> where
T: UnwindSafe, [src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,