[−][src]Struct geng_core::prelude::Color
Fields
r: T
g: T
b: T
a: T
Implementations
impl<T> Color<T> where
T: ColorComponent,
[src]
T: ColorComponent,
pub const WHITE: Color<T>
[src]
pub const BLACK: Color<T>
[src]
pub const GRAY: Color<T>
[src]
pub const TRANSPARENT_WHITE: Color<T>
[src]
pub const TRANSPARENT_BLACK: Color<T>
[src]
pub const RED: Color<T>
[src]
pub const GREEN: Color<T>
[src]
pub const BLUE: Color<T>
[src]
pub const CYAN: Color<T>
[src]
pub const MAGENTA: Color<T>
[src]
pub const YELLOW: Color<T>
[src]
impl<T> Color<T> where
T: ColorComponent,
[src]
T: ColorComponent,
pub fn rgb(r: T, g: T, b: T) -> Color<T>
[src]
pub fn rgba(r: T, g: T, b: T, a: T) -> Color<T>
[src]
pub fn convert<U>(self) -> Color<U> where
U: ColorComponent,
[src]
U: ColorComponent,
Trait Implementations
impl<T> ApproxEq for Color<T> where
T: ApproxEq + ColorComponent,
[src]
T: ApproxEq + ColorComponent,
fn approx_distance_to(&self, other: &Color<T>) -> f32
[src]
fn approx_eq(&self, other: &Self) -> bool
[src]
fn approx_eq_eps(&self, other: &Self, eps: f32) -> bool
[src]
impl AsUniform for Color<f32>
[src]
impl<T> Clone for Color<T> where
T: Clone,
[src]
T: Clone,
impl<T> Copy for Color<T> where
T: Copy,
[src]
T: Copy,
impl<T> Debug for Color<T> where
T: Debug,
[src]
T: Debug,
impl<T> Deref for Color<T> where
T: ColorComponent,
[src]
T: ColorComponent,
impl<T> DerefMut for Color<T> where
T: ColorComponent,
[src]
T: ColorComponent,
impl<'de, T> Deserialize<'de> for Color<T> where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Color<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Color<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<T> Display for Color<T> where
T: ColorComponent,
[src]
T: ColorComponent,
impl<T> Eq for Color<T> where
T: ColorComponent + Eq,
[src]
T: ColorComponent + Eq,
impl<T> PartialEq<Color<T>> for Color<T> where
T: ColorComponent + Eq,
[src]
T: ColorComponent + Eq,
impl RenderbufferPixel for Color<f32>
[src]
impl<T> Schematic for Color<T> where
T: Schematic + 'static,
[src]
T: Schematic + 'static,
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 as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl TexturePixel for Color<f32>
[src]
impl<T> Trans for Color<T> where
T: Trans,
[src]
T: Trans,
fn write_to(&self, writer: &mut dyn Write) -> Result<(), Error>
[src]
fn read_from(reader: &mut dyn Read) -> Result<Color<T>, Error>
[src]
impl VertexAttribute for Color<f32>
[src]
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> ApproxEq for T where
T: Float,
[src]
T: Float,
fn approx_distance_to(&self, other: &T) -> f32
[src]
fn approx_eq(&self, other: &Self) -> bool
[src]
fn approx_eq_eps(&self, other: &Self, eps: f32) -> bool
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow(&self) -> &TⓘImportant traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
[src]
Important traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut TⓘImportant traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
[src]
Important traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
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> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
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<T> Uniform for T where
T: AsUniform,
[src]
T: AsUniform,
fn apply(&self, gl: &Context, info: &UniformInfo)
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,