[−][src]Struct image::LumaA
Grayscale colors + alpha channel
Fields
data: [T; 2]
Trait Implementations
impl<T: Primitive + 'static> Pixel for LumaA<T>
[src]
type Subpixel = T
The underlying subpixel type.
fn channel_count() -> u8
[src]
fn color_model() -> &'static str
[src]
fn color_type() -> ColorType
[src]
fn channels(&self) -> &[T]
[src]
fn channels_mut(&mut self) -> &mut [T]
[src]
fn channels4(&self) -> (T, T, T, T)
[src]
fn from_channels(a: T, b: T, c: T, d: T) -> LumaA<T>
[src]
fn from_slice(slice: &[T]) -> &LumaA<T>
[src]
fn from_slice_mut(slice: &mut [T]) -> &mut LumaA<T>
[src]
fn to_rgb(&self) -> Rgb<T>
[src]
fn to_bgr(&self) -> Bgr<T>
[src]
fn to_rgba(&self) -> Rgba<T>
[src]
fn to_bgra(&self) -> Bgra<T>
[src]
fn to_luma(&self) -> Luma<T>
[src]
fn to_luma_alpha(&self) -> LumaA<T>
[src]
fn map<F>(&self, f: F) -> LumaA<T> where
F: FnMut(T) -> T,
[src]
F: FnMut(T) -> T,
fn apply<F>(&mut self, f: F) where
F: FnMut(T) -> T,
[src]
F: FnMut(T) -> T,
fn map_with_alpha<F, G>(&self, f: F, g: G) -> LumaA<T> where
F: FnMut(T) -> T,
G: FnMut(T) -> T,
[src]
F: FnMut(T) -> T,
G: FnMut(T) -> T,
fn apply_with_alpha<F, G>(&mut self, f: F, g: G) where
F: FnMut(T) -> T,
G: FnMut(T) -> T,
[src]
F: FnMut(T) -> T,
G: FnMut(T) -> T,
fn map2<F>(&self, other: &Self, f: F) -> LumaA<T> where
F: FnMut(T, T) -> T,
[src]
F: FnMut(T, T) -> T,
fn apply2<F>(&mut self, other: &LumaA<T>, f: F) where
F: FnMut(T, T) -> T,
[src]
F: FnMut(T, T) -> T,
fn invert(&mut self)
[src]
fn blend(&mut self, other: &LumaA<T>)
[src]
impl<T: Clone + Primitive> Clone for LumaA<T>
[src]
fn clone(&self) -> LumaA<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Copy + Primitive> Copy for LumaA<T>
[src]
impl<T: Eq + Primitive> Eq for LumaA<T>
[src]
impl<T: PartialEq + Primitive> PartialEq<LumaA<T>> for LumaA<T>
[src]
impl<T: Hash + Primitive> Hash for LumaA<T>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T: Debug + Primitive> Debug for LumaA<T>
[src]
impl<T: Primitive> Index<usize> for LumaA<T>
[src]
impl<T: Primitive> IndexMut<usize> for LumaA<T>
[src]
Auto Trait Implementations
impl<T> Send for LumaA<T> where
T: Send,
T: Send,
impl<T> Unpin for LumaA<T> where
T: Unpin,
T: Unpin,
impl<T> Sync for LumaA<T> where
T: Sync,
T: Sync,
impl<T> UnwindSafe for LumaA<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for LumaA<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
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> 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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,