[−][src]Struct batbox::Color
Fields
r: T
g: T
b: T
a: T
Implementations
impl<T: ColorComponent> Color<T>
[src]
pub const WHITE: Self
[src]
pub const BLACK: Self
[src]
pub const GRAY: Self
[src]
pub const TRANSPARENT_WHITE: Self
[src]
pub const TRANSPARENT_BLACK: Self
[src]
pub const RED: Self
[src]
pub const GREEN: Self
[src]
pub const BLUE: Self
[src]
pub const CYAN: Self
[src]
pub const MAGENTA: Self
[src]
pub const YELLOW: Self
[src]
impl<T: ColorComponent> Color<T>
[src]
pub fn rgb(r: T, g: T, b: T) -> Self
[src]
pub fn rgba(r: T, g: T, b: T, a: T) -> Self
[src]
pub fn convert<U: ColorComponent>(self) -> Color<U>
[src]
Trait Implementations
impl<T: ColorComponent + ApproxEq> ApproxEq for Color<T>
[src]
fn approx_distance_to(&self, other: &Self) -> f32
[src]
fn approx_eq(&self, other: &Self) -> bool
[src]
fn approx_eq_eps(&self, other: &Self, eps: f32) -> bool
[src]
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: ColorComponent> Deref for Color<T>
[src]
impl<T: ColorComponent> DerefMut for Color<T>
[src]
impl<'de, T> Deserialize<'de> for Color<T> where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<T: ColorComponent> Display for Color<T>
[src]
impl<T: ColorComponent + Eq> Eq for Color<T>
[src]
impl<T: ColorComponent + Eq> PartialEq<Color<T>> for Color<T>
[src]
impl<T> Schematic for Color<T> where
T: Schematic + 'static,
T: Schematic + 'static,
T: Schematic + 'static,
T: Schematic + 'static,
T: Schematic,
[src]
T: Schematic + 'static,
T: Schematic + 'static,
T: Schematic + 'static,
T: Schematic + 'static,
T: Schematic,
fn create_schema() -> Schema
[src]
impl<T> Serialize for Color<T> where
T: Serialize,
[src]
T: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<T> Trans for Color<T> where
T: Trans,
T: Trans,
T: Trans,
T: Trans,
[src]
T: Trans,
T: Trans,
T: Trans,
T: Trans,
Auto Trait Implementations
impl<T> RefUnwindSafe for Color<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Color<T> where
T: Send,
T: Send,
impl<T> Sync for Color<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Color<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Color<T> where
T: UnwindSafe,
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
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.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,