Struct Rgba
struct Rgba<T>(3330)
RGB colors + alpha channel
Implementations
impl PixelWithColorType for Rgba<f32>
impl PixelWithColorType for Rgba<u16>
impl PixelWithColorType for Rgba<u8>
impl<T> Any for Rgba<T>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for Rgba<T>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for Rgba<T>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for Rgba<T>
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> Freeze for Rgba<T>
impl<T> From for Rgba<T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> From for Rgba<T>
fn from(c: [T; 4]) -> Self
impl<T> Index for Rgba<T>
fn index(self: &Self, _index: usize) -> &T
impl<T> IndexMut for Rgba<T>
fn index_mut(self: &mut Self, _index: usize) -> &mut T
impl<T> Pointable for Rgba<T>
unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T> RefUnwindSafe for Rgba<T>
impl<T> Send for Rgba<T>
impl<T> StructuralPartialEq for Rgba<T>
impl<T> Sync for Rgba<T>
impl<T> ToOwned for Rgba<T>
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T> Unpin for Rgba<T>
impl<T> UnsafeUnpin for Rgba<T>
impl<T> UnwindSafe for Rgba<T>
impl<T, U> Into for Rgba<T>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for Rgba<T>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for Rgba<T>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T: $crate::clone::Clone> Clone for Rgba<T>
fn clone(self: &Self) -> Rgba<T>
impl<T: $crate::cmp::Eq> Eq for Rgba<T>
impl<T: $crate::cmp::PartialEq> PartialEq for Rgba<T>
fn eq(self: &Self, other: &Rgba<T>) -> bool
impl<T: $crate::fmt::Debug> Debug for Rgba<T>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl<T: $crate::hash::Hash> Hash for Rgba<T>
fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)
impl<T: $crate::marker::Copy> Copy for Rgba<T>
impl<T: Primitive + Enlargeable> Pixel for Rgba<T>
fn channels(self: &Self) -> &[T]fn channels_mut(self: &mut Self) -> &mut [T]fn channels4(self: &Self) -> (T, T, T, T)fn from_channels(a: T, b: T, c: T, d: T) -> Rgba<T>fn from_slice(slice: &[T]) -> &Rgba<T>fn from_slice_mut(slice: &mut [T]) -> &mut Rgba<T>fn to_rgb(self: &Self) -> Rgb<T>fn to_rgba(self: &Self) -> Rgba<T>fn to_luma(self: &Self) -> Luma<T>fn to_luma_alpha(self: &Self) -> LumaA<T>fn map<F>(self: &Self, f: F) -> Rgba<T> where F: FnMut(T) -> Tfn apply<F>(self: &mut Self, f: F) where F: FnMut(T) -> Tfn map_with_alpha<F, G>(self: &Self, f: F, g: G) -> Rgba<T> where F: FnMut(T) -> T, G: FnMut(T) -> Tfn apply_with_alpha<F, G>(self: &mut Self, f: F, g: G) where F: FnMut(T) -> T, G: FnMut(T) -> Tfn map2<F>(self: &Self, other: &Self, f: F) -> Rgba<T> where F: FnMut(T, T) -> Tfn apply2<F>(self: &mut Self, other: &Rgba<T>, f: F) where F: FnMut(T, T) -> Tfn invert(self: &mut Self)fn blend(self: &mut Self, other: &Rgba<T>)