[−][src]Struct rgb::alt::GrayAlpha
Grayscale with alpha. Use .0
/.1
to access.
Methods
impl<T: Clone, A> GrayAlpha<T, A>
[src]
impl<T: Clone, A> GrayAlpha<T, A>
impl<T, A> GrayAlpha<T, A>
[src]
impl<T, A> GrayAlpha<T, A>
pub fn gray_mut(&mut self) -> &mut Gray<T> | [src] |
Provide a mutable view of only Gray
component (leaving out alpha).
impl<T: Copy, A: Clone> GrayAlpha<T, A>
[src]
impl<T: Copy, A: Clone> GrayAlpha<T, A>
pub fn map_gray<F, U, B>(&self, f: F) -> GrayAlpha<U, B> where | [src] |
Create new GrayAlpha
with the same alpha value, but different Gray
value
Trait Implementations
impl<T> ComponentSlice<T> for GrayAlpha<T>
[src]
impl<T> ComponentSlice<T> for GrayAlpha<T>
fn as_slice(&self) -> &[T] | [src] |
fn as_mut_slice(&mut self) -> &mut [T] | [src] |
impl<T: Copy, B> ComponentMap<GrayAlpha<B, B>, T, B> for GrayAlpha<T>
[src]
impl<T: Copy, B> ComponentMap<GrayAlpha<B, B>, T, B> for GrayAlpha<T>
impl<T> AsPixels<GrayAlpha<T, T>> for [T]
[src]
impl<T> AsPixels<GrayAlpha<T, T>> for [T]
impl<ComponentType: Copy, AlphaComponentType: Copy> Copy for GrayAlpha<ComponentType, AlphaComponentType>
[src]
impl<ComponentType: Copy, AlphaComponentType: Copy> Copy for GrayAlpha<ComponentType, AlphaComponentType>
impl<ComponentType: Debug, AlphaComponentType: Debug> Debug for GrayAlpha<ComponentType, AlphaComponentType>
[src]
impl<ComponentType: Debug, AlphaComponentType: Debug> Debug for GrayAlpha<ComponentType, AlphaComponentType>
impl<ComponentType: PartialEq, AlphaComponentType: PartialEq> PartialEq<GrayAlpha<ComponentType, AlphaComponentType>> for GrayAlpha<ComponentType, AlphaComponentType>
[src]
impl<ComponentType: PartialEq, AlphaComponentType: PartialEq> PartialEq<GrayAlpha<ComponentType, AlphaComponentType>> for GrayAlpha<ComponentType, AlphaComponentType>
fn eq(&self, other: &GrayAlpha<ComponentType, AlphaComponentType>) -> bool | [src] |
fn ne(&self, other: &GrayAlpha<ComponentType, AlphaComponentType>) -> bool | [src] |
impl<ComponentType: Eq, AlphaComponentType: Eq> Eq for GrayAlpha<ComponentType, AlphaComponentType>
[src]
impl<ComponentType: Eq, AlphaComponentType: Eq> Eq for GrayAlpha<ComponentType, AlphaComponentType>
impl<ComponentType: Ord, AlphaComponentType: Ord> Ord for GrayAlpha<ComponentType, AlphaComponentType>
[src]
impl<ComponentType: Ord, AlphaComponentType: Ord> Ord for GrayAlpha<ComponentType, AlphaComponentType>
fn cmp(&self, other: &GrayAlpha<ComponentType, AlphaComponentType>) -> Ordering | [src] |
fn max(self, other: Self) -> Self | 1.21.0 [src] |
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self | 1.21.0 [src] |
Compares and returns the minimum of two values. Read more
impl<ComponentType: PartialOrd, AlphaComponentType: PartialOrd> PartialOrd<GrayAlpha<ComponentType, AlphaComponentType>> for GrayAlpha<ComponentType, AlphaComponentType>
[src]
impl<ComponentType: PartialOrd, AlphaComponentType: PartialOrd> PartialOrd<GrayAlpha<ComponentType, AlphaComponentType>> for GrayAlpha<ComponentType, AlphaComponentType>
fn partial_cmp( | [src] |
fn lt(&self, other: &GrayAlpha<ComponentType, AlphaComponentType>) -> bool | [src] |
fn le(&self, other: &GrayAlpha<ComponentType, AlphaComponentType>) -> bool | [src] |
fn gt(&self, other: &GrayAlpha<ComponentType, AlphaComponentType>) -> bool | [src] |
fn ge(&self, other: &GrayAlpha<ComponentType, AlphaComponentType>) -> bool | [src] |
impl<ComponentType: Hash, AlphaComponentType: Hash> Hash for GrayAlpha<ComponentType, AlphaComponentType>
[src]
impl<ComponentType: Hash, AlphaComponentType: Hash> Hash for GrayAlpha<ComponentType, AlphaComponentType>
fn hash<__HComponentTypeAlphaComponentType: Hasher>( | [src] |
fn hash_slice<H>(data: &[Self], state: &mut H) where | 1.3.0 [src] |
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T: Clone, A> From<GrayAlpha<T, A>> for RGBA<T, A>
[src]
impl<T: Clone, A> From<GrayAlpha<T, A>> for RGBA<T, A>
impl<T: Copy> From<Gray<T>> for GrayAlpha<T, u8>
[src]
impl<T: Copy> From<Gray<T>> for GrayAlpha<T, u8>
Assumes 255 is opaque
impl<T: Copy> From<Gray<T>> for GrayAlpha<T, u16>
[src]
impl<T: Copy> From<Gray<T>> for GrayAlpha<T, u16>
Assumes 65535 is opaque
impl<ComponentType: Clone, AlphaComponentType: Clone> Clone for GrayAlpha<ComponentType, AlphaComponentType>
[src]
impl<ComponentType: Clone, AlphaComponentType: Clone> Clone for GrayAlpha<ComponentType, AlphaComponentType>
fn clone(&self) -> GrayAlpha<ComponentType, AlphaComponentType> | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl<ComponentType: Default, AlphaComponentType: Default> Default for GrayAlpha<ComponentType, AlphaComponentType>
[src]
impl<ComponentType: Default, AlphaComponentType: Default> Default for GrayAlpha<ComponentType, AlphaComponentType>
impl<T> AsRef<T> for GrayAlpha<T>
[src]
impl<T> AsRef<T> for GrayAlpha<T>
impl<T> AsMut<T> for GrayAlpha<T>
[src]
impl<T> AsMut<T> for GrayAlpha<T>
Auto Trait Implementations
impl<ComponentType, AlphaComponentType> Send for GrayAlpha<ComponentType, AlphaComponentType> where
AlphaComponentType: Send,
ComponentType: Send,
impl<ComponentType, AlphaComponentType> Send for GrayAlpha<ComponentType, AlphaComponentType> where
AlphaComponentType: Send,
ComponentType: Send,
impl<ComponentType, AlphaComponentType> Sync for GrayAlpha<ComponentType, AlphaComponentType> where
AlphaComponentType: Sync,
ComponentType: Sync,
impl<ComponentType, AlphaComponentType> Sync for GrayAlpha<ComponentType, AlphaComponentType> where
AlphaComponentType: Sync,
ComponentType: Sync,
Blanket Implementations
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> From for T
[src]
impl<T> From for T
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |