Struct rin::color::Rgb [−][src]
Fields
r: T
g: T
b: T
Implementations
impl<T, S> Rgb<T, S> where
T: Channel,
S: TransferFunction,
[src]
impl<T, S> Rgb<T, S> where
T: Channel,
S: TransferFunction,
[src]pub fn from_hex(hex: u32) -> Rgb<T, S>
[src]
pub fn rg(&self) -> Rg<T, S>
[src]
pub fn rb(&self) -> Rg<T, S>
[src]
pub fn gr(&self) -> Rg<T, S>
[src]
pub fn gb(&self) -> Rg<T, S>
[src]
pub fn br(&self) -> Rg<T, S>
[src]
pub fn bg(&self) -> Rg<T, S>
[src]
pub fn rgb(&self) -> Rgb<T, S>
[src]
pub fn rbg(&self) -> Rgb<T, S>
[src]
pub fn bgr(&self) -> Rgb<T, S>
[src]
pub fn brg(&self) -> Rgb<T, S>
[src]
pub fn grb(&self) -> Rgb<T, S>
[src]
pub fn gbr(&self) -> Rgb<T, S>
[src]
impl<T, S> Rgb<T, S> where
T: Channel,
S: TransferFunction,
[src]
impl<T, S> Rgb<T, S> where
T: Channel,
S: TransferFunction,
[src]pub fn to_standard<S2>(&self) -> Rgb<T, S2> where
S2: TransferFunction,
[src]
S2: TransferFunction,
pub fn to_linear(&self) -> Rgb<T, LinearRgb>
[src]
Trait Implementations
impl<T, S> Color<T> for Rgb<T, S> where
T: Channel,
[src]
impl<T, S> Color<T> for Rgb<T, S> where
T: Channel,
[src]pub fn clamp_s(self, lo: T, hi: T) -> Rgb<T, S>
[src]
Clamps the components of the color to the range (lo,hi)
.
pub fn clamp_c(self, lo: Rgb<T, S>, hi: Rgb<T, S>) -> Rgb<T, S>
[src]
Clamps the components of the color component-wise between lo
and hi
.
pub fn inverse(self) -> Rgb<T, S>
[src]
Inverts the color.
pub fn mix(self, other: Rgb<T, S>, value: T) -> Rgb<T, S>
[src]
impl<'de, T, S> Deserialize<'de> for Rgb<T, S> where
T: Deserialize<'de>,
[src]
impl<'de, T, S> Deserialize<'de> for Rgb<T, S> where
T: Deserialize<'de>,
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Rgb<T, S>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Rgb<T, S>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<T, S> FloatColor<T> for Rgb<T, S> where
T: FloatChannel,
[src]
impl<T, S> FloatColor<T> for Rgb<T, S> where
T: FloatChannel,
[src]impl IntoUniformValueRef for Rgb<f32, Srgb>
[src]
impl IntoUniformValueRef for Rgb<f32, Srgb>
[src]pub fn into_uniform_value_ref(&self) -> UniformValueRef<'_>
[src]
impl IntoUniformValueRef for Rgb<f32, LinearRgb>
[src]
impl IntoUniformValueRef for Rgb<f32, LinearRgb>
[src]pub fn into_uniform_value_ref(&self) -> UniformValueRef<'_>
[src]
impl<T, S> Saturating for Rgb<T, S> where
T: Channel + Saturating,
[src]
impl<T, S> Saturating for Rgb<T, S> where
T: Channel + Saturating,
[src]pub fn saturating_add(self, v: Rgb<T, S>) -> Rgb<T, S>
[src]
pub fn saturating_sub(self, v: Rgb<T, S>) -> Rgb<T, S>
[src]
impl<T, S> Serialize for Rgb<T, S> where
T: Serialize,
[src]
impl<T, S> Serialize for Rgb<T, S> where
T: Serialize,
[src]pub 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<T, S> ToHsv for Rgb<T, S> where
T: Channel,
S: TransferFunction,
[src]
impl<T, S> ToHsv for Rgb<T, S> where
T: Channel,
S: TransferFunction,
[src]impl<T, S> ToLuma for Rgb<T, S> where
T: Channel,
S: TransferFunction,
[src]
impl<T, S> ToLuma for Rgb<T, S> where
T: Channel,
S: TransferFunction,
[src]impl<T, S> ToRgb for Rgb<T, S> where
T: Channel,
S: TransferFunction,
[src]
impl<T, S> ToRgb for Rgb<T, S> where
T: Channel,
S: TransferFunction,
[src]impl<T, S> ToRgba for Rgb<T, S> where
T: Channel,
S: TransferFunction,
[src]
impl<T, S> ToRgba for Rgb<T, S> where
T: Channel,
S: TransferFunction,
[src]impl<T, S> ToXyz for Rgb<T, S> where
T: Channel,
S: MatrixColorSpace + TransferFunction,
[src]
impl<T, S> ToXyz for Rgb<T, S> where
T: Channel,
S: MatrixColorSpace + TransferFunction,
[src]impl<T, S> Copy for Rgb<T, S> where
T: Copy,
[src]
T: Copy,
impl<N, S> Eq for Rgb<N, S> where
N: Clone + PartialEq<N> + Eq + Num + NumCast,
[src]
N: Clone + PartialEq<N> + Eq + Num + NumCast,
Auto Trait Implementations
impl<T, S> RefUnwindSafe for Rgb<T, S> where
S: RefUnwindSafe,
T: RefUnwindSafe,
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, S> Send for Rgb<T, S> where
S: Send,
T: Send,
S: Send,
T: Send,
impl<T, S> Sync for Rgb<T, S> where
S: Sync,
T: Sync,
S: Sync,
T: Sync,
impl<T, S> Unpin for Rgb<T, S> where
S: Unpin,
T: Unpin,
S: Unpin,
T: Unpin,
impl<T, S> UnwindSafe for Rgb<T, S> where
S: UnwindSafe,
T: UnwindSafe,
S: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> AsUniform<dyn AsRef<[[f32; 3]; 3]> + 'static> for T where
T: AsRef<[[f32; 3]; 3]>,
[src]
impl<T> AsUniform<dyn AsRef<[[f32; 3]; 3]> + 'static> for T where
T: AsRef<[[f32; 3]; 3]>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<T> AsUniform<dyn AsRef<[f32; 3]> + 'static> for T where
T: AsRef<[f32; 3]>,
[src]
impl<T> AsUniform<dyn AsRef<[f32; 3]> + 'static> for T where
T: AsRef<[f32; 3]>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<T> AsUniform<dyn AsRef<[i32; 3]> + 'static> for T where
T: AsRef<[i32; 3]>,
[src]
impl<T> AsUniform<dyn AsRef<[i32; 3]> + 'static> for T where
T: AsRef<[i32; 3]>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<T> AsUniform<dyn AsRef<[u32; 3]> + 'static> for T where
T: AsRef<[u32; 3]>,
[src]
impl<T> AsUniform<dyn AsRef<[u32; 3]> + 'static> for T where
T: AsRef<[u32; 3]>,
[src]pub fn as_uniform(&self) -> UniformValue
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
[src]
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<T> WriteStd140 for T where
T: Std140,
[src]
impl<T> WriteStd140 for T where
T: Std140,
[src]pub fn write_std140(&self, data: &mut Data)
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> Slottable for T where
T: Copy,
[src]
T: Copy,