Struct rgb::alt::Gray [−][src]
Grayscale. Use .0
or *
(deref) to access the value.
Trait Implementations
impl<T> AsMut<T> for Gray<T>
[src]
impl<T> AsPixels<Gray<T>> for [T]
[src]
impl<T> AsRef<T> for Gray<T>
[src]
impl<ComponentType: Clone> Clone for Gray<ComponentType>
[src]
fn clone(&self) -> Gray<ComponentType>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> ComponentSlice<T> for Gray<T>
[src]
fn as_slice(&self) -> &[T]
[src]
fn as_mut_slice(&mut self) -> &mut [T]
[src]
impl<ComponentType: Copy> Copy for Gray<ComponentType>
[src]
impl<ComponentType: Debug> Debug for Gray<ComponentType>
[src]
impl<ComponentType: Default> Default for Gray<ComponentType>
[src]
impl<T> Deref for Gray<T>
[src]
impl<ComponentType: Eq> Eq for Gray<ComponentType>
[src]
impl<T: Clone> From<Gray<T>> for RGB<T>
[src]
impl<T: Copy> From<Gray<T>> for GrayAlpha<T, u8>
[src]
Assumes 255 is opaque
impl<T: Copy> From<Gray<T>> for GrayAlpha<T, u16>
[src]
Assumes 65535 is opaque
impl<T: Copy> From<T> for Gray<T>
[src]
impl<ComponentType: Hash> Hash for Gray<ComponentType>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<ComponentType: Ord> Ord for Gray<ComponentType>
[src]
fn cmp(&self, other: &Gray<ComponentType>) -> 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<ComponentType: PartialEq> PartialEq<Gray<ComponentType>> for Gray<ComponentType>
[src]
fn eq(&self, other: &Gray<ComponentType>) -> bool
[src]
fn ne(&self, other: &Gray<ComponentType>) -> bool
[src]
impl<ComponentType: PartialOrd> PartialOrd<Gray<ComponentType>> for Gray<ComponentType>
[src]
fn partial_cmp(&self, other: &Gray<ComponentType>) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<ComponentType> StructuralEq for Gray<ComponentType>
[src]
impl<ComponentType> StructuralPartialEq for Gray<ComponentType>
[src]
Auto Trait Implementations
impl<ComponentType> Send for Gray<ComponentType> where
ComponentType: Send,
ComponentType: Send,
impl<ComponentType> Sync for Gray<ComponentType> where
ComponentType: Sync,
ComponentType: Sync,
impl<ComponentType> Unpin for Gray<ComponentType> where
ComponentType: Unpin,
ComponentType: Unpin,
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<!> for 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, 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>,