[−][src]Struct lodepng::Grey
Grayscale. Use .0
or *
(deref) to access the value.
Implementations
impl<T> Gray<T>
[src]
Trait Implementations
impl<T> Add<Gray<T>> for Gray<T> where
T: Add<T>,
[src]
T: Add<T>,
px + px
type Output = Gray<<T as Add<T>>::Output>
The resulting type after applying the +
operator.
pub fn add(self, other: Gray<T>) -> <Gray<T> as Add<Gray<T>>>::Output
[src]
impl<T> Add<T> for Gray<T> where
T: Copy + Add<T, Output = T>,
[src]
T: Copy + Add<T, Output = T>,
px + 1
type Output = Gray<T>
The resulting type after applying the +
operator.
pub fn add(self, r: T) -> <Gray<T> as Add<T>>::Output
[src]
impl<T> AddAssign<Gray<T>> for Gray<T> where
T: Add<T, Output = T> + Copy,
[src]
T: Add<T, Output = T> + Copy,
px + px
pub fn add_assign(&mut self, other: Gray<T>)
[src]
impl<T> AddAssign<T> for Gray<T> where
T: Copy + Add<T, Output = T>,
[src]
T: Copy + Add<T, Output = T>,
px + 1
pub fn add_assign(&mut self, r: T)
[src]
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,
pub fn clone(&self) -> Gray<ComponentType>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T, B> ComponentMap<Gray<B>, T, B> for Gray<T> where
T: Copy,
[src]
T: Copy,
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<T> Div<T> for Gray<T> where
T: Copy + Div<T, Output = T>,
[src]
T: Copy + Div<T, Output = T>,
px / 1
type Output = Gray<T>
The resulting type after applying the /
operator.
pub fn div(self, r: T) -> <Gray<T> as Div<T>>::Output
[src]
impl<T> DivAssign<T> for Gray<T> where
T: Copy + Div<T, Output = T>,
[src]
T: Copy + Div<T, Output = T>,
px * 1
pub fn div_assign(&mut self, r: T)
[src]
impl<ComponentType> Eq for Gray<ComponentType> where
ComponentType: Eq,
[src]
ComponentType: Eq,
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<Gray<T>> for GrayAlpha<T, u8> where
T: Copy,
[src]
T: Copy,
Assumes 255 is opaque
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,
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T> Mul<T> for Gray<T> where
T: Copy + Mul<T, Output = T>,
[src]
T: Copy + Mul<T, Output = T>,
px * 1
type Output = Gray<T>
The resulting type after applying the *
operator.
pub fn mul(self, r: T) -> <Gray<T> as Mul<T>>::Output
[src]
impl<T> MulAssign<T> for Gray<T> where
T: Copy + Mul<T, Output = T>,
[src]
T: Copy + Mul<T, Output = T>,
px * 1
pub fn mul_assign(&mut self, r: T)
[src]
impl<ComponentType> Ord for Gray<ComponentType> where
ComponentType: Ord,
[src]
ComponentType: Ord,
pub 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<Gray<ComponentType>> for Gray<ComponentType> where
ComponentType: PartialEq<ComponentType>,
[src]
ComponentType: PartialEq<ComponentType>,
pub fn eq(&self, other: &Gray<ComponentType>) -> bool
[src]
pub fn ne(&self, other: &Gray<ComponentType>) -> bool
[src]
impl<ComponentType> PartialOrd<Gray<ComponentType>> for Gray<ComponentType> where
ComponentType: PartialOrd<ComponentType>,
[src]
ComponentType: PartialOrd<ComponentType>,
pub fn partial_cmp(&self, other: &Gray<ComponentType>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Gray<ComponentType>) -> bool
[src]
pub fn le(&self, other: &Gray<ComponentType>) -> bool
[src]
pub fn gt(&self, other: &Gray<ComponentType>) -> bool
[src]
pub 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> Sub<Gray<T>> for Gray<T> where
T: Sub<T>,
[src]
T: Sub<T>,
px - px
type Output = Gray<<T as Sub<T>>::Output>
The resulting type after applying the -
operator.
pub fn sub(self, other: Gray<T>) -> <Gray<T> as Sub<Gray<T>>>::Output
[src]
impl<T> Sub<T> for Gray<T> where
T: Copy + Sub<T, Output = T>,
[src]
T: Copy + Sub<T, Output = T>,
px - 1
type Output = Gray<<T as Sub<T>>::Output>
The resulting type after applying the -
operator.
pub fn sub(self, r: T) -> <Gray<T> as Sub<T>>::Output
[src]
impl<T> SubAssign<Gray<T>> for Gray<T> where
T: Sub<T, Output = T> + Copy,
[src]
T: Sub<T, Output = T> + Copy,
px - px
pub fn sub_assign(&mut self, other: Gray<T>)
[src]
impl<T> SubAssign<T> for Gray<T> where
T: Copy + Sub<T, Output = T>,
[src]
T: Copy + Sub<T, Output = T>,
px - 1
pub fn sub_assign(&mut self, r: T)
[src]
impl<T> Sum<Gray<T>> for Gray<T> where
T: Default + Add<T, Output = T>,
[src]
T: Default + Add<T, Output = T>,
impl<T> Zeroable for Gray<T> where
T: Zeroable,
[src]
T: Zeroable,
pub fn zeroed() -> Self
Auto Trait Implementations
impl<ComponentType> RefUnwindSafe for Gray<ComponentType> where
ComponentType: RefUnwindSafe,
[src]
ComponentType: RefUnwindSafe,
impl<ComponentType> Send for Gray<ComponentType> where
ComponentType: Send,
[src]
ComponentType: Send,
impl<ComponentType> Sync for Gray<ComponentType> where
ComponentType: Sync,
[src]
ComponentType: Sync,
impl<ComponentType> Unpin for Gray<ComponentType> where
ComponentType: Unpin,
[src]
ComponentType: Unpin,
impl<ComponentType> UnwindSafe for Gray<ComponentType> where
ComponentType: UnwindSafe,
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CallHasher for T where
T: Hash,
T: Hash,
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.
pub fn to_owned(&self) -> T
[src]
pub 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.
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>,