Struct load_image::export::rgb::Gray [−][src]
#[repr(C)]pub struct Gray<ComponentType>(pub ComponentType);
Expand description
Grayscale. Use .0
or *
(deref) to access the value.
Implementations
Trait Implementations
impl<T> AddAssign<Gray<T>> for Gray<T> where
T: Add<T, Output = T> + Copy,
[src]
impl<T> AddAssign<Gray<T>> for Gray<T> where
T: Add<T, Output = T> + Copy,
[src]px + px
pub fn add_assign(&mut self, other: Gray<T>)
[src]
pub fn add_assign(&mut self, other: Gray<T>)
[src]Performs the +=
operation. Read more
impl<T> AddAssign<T> for Gray<T> where
T: Copy + Add<T, Output = T>,
[src]
impl<T> AddAssign<T> for Gray<T> where
T: Copy + Add<T, Output = T>,
[src]px + 1
pub fn add_assign(&mut self, r: T)
[src]
pub fn add_assign(&mut self, r: T)
[src]Performs the +=
operation. Read more
impl<T> AsPixels<Gray<T>> for [T]
[src]
impl<T> AsPixels<Gray<T>> for [T]
[src]impl<T, B> ComponentMap<Gray<B>, T, B> for Gray<T> where
T: Copy,
[src]
impl<T, B> ComponentMap<Gray<B>, T, B> for Gray<T> where
T: Copy,
[src]impl<T> ComponentSlice<T> for Gray<T>
[src]
impl<T> ComponentSlice<T> for Gray<T>
[src]impl<T> DivAssign<T> for Gray<T> where
T: Copy + Div<T, Output = T>,
[src]
impl<T> DivAssign<T> for Gray<T> where
T: Copy + Div<T, Output = T>,
[src]px * 1
pub fn div_assign(&mut self, r: T)
[src]
pub fn div_assign(&mut self, r: T)
[src]Performs the /=
operation. Read more
impl<T> MulAssign<T> for Gray<T> where
T: Copy + Mul<T, Output = T>,
[src]
impl<T> MulAssign<T> for Gray<T> where
T: Copy + Mul<T, Output = T>,
[src]px * 1
pub fn mul_assign(&mut self, r: T)
[src]
pub fn mul_assign(&mut self, r: T)
[src]Performs the *=
operation. Read more
impl<ComponentType> Ord for Gray<ComponentType> where
ComponentType: Ord,
[src]
impl<ComponentType> Ord for Gray<ComponentType> where
ComponentType: Ord,
[src]impl<ComponentType> PartialEq<Gray<ComponentType>> for Gray<ComponentType> where
ComponentType: PartialEq<ComponentType>,
[src]
impl<ComponentType> PartialEq<Gray<ComponentType>> for Gray<ComponentType> where
ComponentType: PartialEq<ComponentType>,
[src]impl<ComponentType> PartialOrd<Gray<ComponentType>> for Gray<ComponentType> where
ComponentType: PartialOrd<ComponentType>,
[src]
impl<ComponentType> PartialOrd<Gray<ComponentType>> for Gray<ComponentType> where
ComponentType: PartialOrd<ComponentType>,
[src]pub fn partial_cmp(&self, other: &Gray<ComponentType>) -> Option<Ordering>
[src]
pub fn partial_cmp(&self, other: &Gray<ComponentType>) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<T> SubAssign<Gray<T>> for Gray<T> where
T: Sub<T, Output = T> + Copy,
[src]
impl<T> SubAssign<Gray<T>> for Gray<T> where
T: Sub<T, Output = T> + Copy,
[src]px - px
pub fn sub_assign(&mut self, other: Gray<T>)
[src]
pub fn sub_assign(&mut self, other: Gray<T>)
[src]Performs the -=
operation. Read more
impl<T> SubAssign<T> for Gray<T> where
T: Copy + Sub<T, Output = T>,
[src]
impl<T> SubAssign<T> for Gray<T> where
T: Copy + Sub<T, Output = T>,
[src]px - 1
pub fn sub_assign(&mut self, r: T)
[src]
pub fn sub_assign(&mut self, r: T)
[src]Performs the -=
operation. Read more
impl<ComponentType> Copy for Gray<ComponentType> where
ComponentType: Copy,
[src]
ComponentType: Copy,
impl<ComponentType> Eq for Gray<ComponentType> where
ComponentType: Eq,
[src]
ComponentType: Eq,
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]
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more