[−][src]Struct solstice::Color
Fields
red: T
blue: T
green: T
alpha: T
Trait Implementations
impl<T: Clone> Clone for Color<T>
[src]
impl<T: Copy> Copy for Color<T>
[src]
impl<T: Debug> Debug for Color<T>
[src]
impl<T: Default> Default for Color<T>
[src]
impl<T: Eq> Eq for Color<T>
[src]
impl Into<Color<ClampedF32>> for Color<f32>
[src]
pub fn into(self) -> Color<ClampedF32>
[src]
impl Into<Color<f32>> for Color<ClampedF32>
[src]
impl<T: Ord> Ord for Color<T>
[src]
pub fn cmp(&self, other: &Color<T>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<T: PartialEq> PartialEq<Color<T>> for Color<T>
[src]
impl<T: PartialOrd> PartialOrd<Color<T>> for Color<T>
[src]
pub fn partial_cmp(&self, other: &Color<T>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Color<T>) -> bool
[src]
pub fn le(&self, other: &Color<T>) -> bool
[src]
pub fn gt(&self, other: &Color<T>) -> bool
[src]
pub fn ge(&self, other: &Color<T>) -> bool
[src]
impl<T> StructuralEq for Color<T>
[src]
impl<T> StructuralPartialEq for Color<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Color<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for Color<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for Color<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for Color<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for Color<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> Slottable for T where
T: Copy,
[src]
T: Copy,
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>,