[−][src]Struct lodepng::Grey
Grayscale. Use .0
or *
(deref) to access the value.
Trait Implementations
impl<T> AsMut<T> for Gray<T>
[src]
impl<T> AsRef<T> for Gray<T>
[src]
impl<ComponentType> Clone for Gray<ComponentType> where
ComponentType: Clone,
[src]
ComponentType: Clone,
impl<T> ComponentSlice<T> for Gray<T>
[src]
impl<ComponentType> Copy for Gray<ComponentType> where
ComponentType: Copy,
[src]
ComponentType: Copy,
impl<ComponentType> Debug for Gray<ComponentType> where
ComponentType: Debug,
[src]
ComponentType: Debug,
impl<ComponentType> Default for Gray<ComponentType> where
ComponentType: Default,
[src]
ComponentType: Default,
impl<T> Deref for Gray<T>
[src]
impl<ComponentType> Eq for Gray<ComponentType> where
ComponentType: Eq,
[src]
ComponentType: Eq,
impl<T> From<Gray<T>> for GrayAlpha<T, u8> where
T: Copy,
[src]
T: Copy,
Assumes 255 is opaque
impl<T> From<Gray<T>> for GrayAlpha<T, u16> where
T: Copy,
[src]
T: Copy,
Assumes 65535 is opaque
impl<T> From<Gray<T>> for RGB<T> where
T: Clone,
[src]
T: Clone,
impl<T> From<T> for Gray<T> where
T: Copy,
[src]
T: Copy,
impl<ComponentType> Hash for Gray<ComponentType> where
ComponentType: Hash,
[src]
ComponentType: Hash,
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<ComponentType> Ord for Gray<ComponentType> where
ComponentType: Ord,
[src]
ComponentType: Ord,
fn cmp(&self, other: &Gray<ComponentType>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<ComponentType> PartialEq<Gray<ComponentType>> for Gray<ComponentType> where
ComponentType: PartialEq<ComponentType>,
[src]
ComponentType: PartialEq<ComponentType>,
fn eq(&self, other: &Gray<ComponentType>) -> bool
[src]
fn ne(&self, other: &Gray<ComponentType>) -> bool
[src]
impl<ComponentType> PartialOrd<Gray<ComponentType>> for Gray<ComponentType> where
ComponentType: PartialOrd<ComponentType>,
[src]
ComponentType: PartialOrd<ComponentType>,
fn partial_cmp(&self, other: &Gray<ComponentType>) -> Option<Ordering>
[src]
fn lt(&self, other: &Gray<ComponentType>) -> bool
[src]
fn le(&self, other: &Gray<ComponentType>) -> bool
[src]
fn gt(&self, other: &Gray<ComponentType>) -> bool
[src]
fn ge(&self, other: &Gray<ComponentType>) -> bool
[src]
impl<T> Pod for Gray<T> where
T: Pod,
[src]
T: Pod,
impl<ComponentType> StructuralEq for Gray<ComponentType>
[src]
impl<ComponentType> StructuralPartialEq for Gray<ComponentType>
[src]
impl<T> Zeroable for Gray<T> where
T: Zeroable,
[src]
T: Zeroable,
fn zeroed() -> Self
Auto Trait Implementations
impl<ComponentType> RefUnwindSafe for Gray<ComponentType> where
ComponentType: RefUnwindSafe,
ComponentType: RefUnwindSafe,
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,
impl<ComponentType> UnwindSafe for Gray<ComponentType> where
ComponentType: UnwindSafe,
ComponentType: 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> 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> 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, 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>,