#[repr(C)]pub struct ABGR<ComponentType, AlphaComponentType = ComponentType> {
pub a: AlphaComponentType,
pub b: ComponentType,
pub g: ComponentType,
pub r: ComponentType,
}
Expand description
A+BGR
Fields
a: AlphaComponentType
Alpha first
b: ComponentType
Blue
g: ComponentType
Green
r: ComponentType
Red last
Implementations
sourceimpl<T: Copy, A: Clone> ABGR<T, A>
impl<T: Copy, A: Clone> ABGR<T, A>
Trait Implementations
sourceimpl<T> AsPixels<ABGR<T, T>> for [T]
impl<T> AsPixels<ABGR<T, T>> for [T]
sourcefn as_pixels(&self) -> &[ABGR<T>]
fn as_pixels(&self) -> &[ABGR<T>]
Reinterpret the slice as a read-only/shared slice of pixels. Multiple consecutive elements in the slice are intepreted as a single pixel (depending on format, e.g. 3 for RGB, 4 for RGBA). Read more
sourcefn as_pixels_mut(&mut self) -> &mut [ABGR<T>]
fn as_pixels_mut(&mut self) -> &mut [ABGR<T>]
Reinterpret the slice as a mutable/exclusive slice of pixels. Multiple consecutive elements in the slice are intepreted as a single pixel (depending on format, e.g. 3 for RGB, 4 for RGBA). Read more
sourceimpl<ComponentType: Clone, AlphaComponentType: Clone> Clone for ABGR<ComponentType, AlphaComponentType>
impl<ComponentType: Clone, AlphaComponentType: Clone> Clone for ABGR<ComponentType, AlphaComponentType>
sourceimpl<T: Copy, B> ComponentMap<ABGR<B, B>, T, B> for ABGR<T>
impl<T: Copy, B> ComponentMap<ABGR<B, B>, T, B> for ABGR<T>
sourceimpl<T> ComponentSlice<T> for ABGR<T>
impl<T> ComponentSlice<T> for ABGR<T>
sourceimpl<ComponentType: Debug, AlphaComponentType: Debug> Debug for ABGR<ComponentType, AlphaComponentType>
impl<ComponentType: Debug, AlphaComponentType: Debug> Debug for ABGR<ComponentType, AlphaComponentType>
sourceimpl<ComponentType: Default, AlphaComponentType: Default> Default for ABGR<ComponentType, AlphaComponentType>
impl<ComponentType: Default, AlphaComponentType: Default> Default for ABGR<ComponentType, AlphaComponentType>
sourceimpl<'de, ComponentType, AlphaComponentType> Deserialize<'de> for ABGR<ComponentType, AlphaComponentType> where
ComponentType: Deserialize<'de>,
AlphaComponentType: Deserialize<'de>,
impl<'de, ComponentType, AlphaComponentType> Deserialize<'de> for ABGR<ComponentType, AlphaComponentType> where
ComponentType: Deserialize<'de>,
AlphaComponentType: Deserialize<'de>,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<ComponentType: Hash, AlphaComponentType: Hash> Hash for ABGR<ComponentType, AlphaComponentType>
impl<ComponentType: Hash, AlphaComponentType: Hash> Hash for ABGR<ComponentType, AlphaComponentType>
sourceimpl<ComponentType: Ord, AlphaComponentType: Ord> Ord for ABGR<ComponentType, AlphaComponentType>
impl<ComponentType: Ord, AlphaComponentType: Ord> Ord for ABGR<ComponentType, AlphaComponentType>
sourceimpl<ComponentType: PartialEq, AlphaComponentType: PartialEq> PartialEq<ABGR<ComponentType, AlphaComponentType>> for ABGR<ComponentType, AlphaComponentType>
impl<ComponentType: PartialEq, AlphaComponentType: PartialEq> PartialEq<ABGR<ComponentType, AlphaComponentType>> for ABGR<ComponentType, AlphaComponentType>
sourceimpl<ComponentType: PartialOrd, AlphaComponentType: PartialOrd> PartialOrd<ABGR<ComponentType, AlphaComponentType>> for ABGR<ComponentType, AlphaComponentType>
impl<ComponentType: PartialOrd, AlphaComponentType: PartialOrd> PartialOrd<ABGR<ComponentType, AlphaComponentType>> for ABGR<ComponentType, AlphaComponentType>
sourcefn partial_cmp(
&self,
other: &ABGR<ComponentType, AlphaComponentType>
) -> Option<Ordering>
fn partial_cmp(
&self,
other: &ABGR<ComponentType, AlphaComponentType>
) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<ComponentType, AlphaComponentType> Serialize for ABGR<ComponentType, AlphaComponentType> where
ComponentType: Serialize,
AlphaComponentType: Serialize,
impl<ComponentType, AlphaComponentType> Serialize for ABGR<ComponentType, AlphaComponentType> where
ComponentType: Serialize,
AlphaComponentType: Serialize,
impl<ComponentType: Copy, AlphaComponentType: Copy> Copy for ABGR<ComponentType, AlphaComponentType>
impl<ComponentType: Eq, AlphaComponentType: Eq> Eq for ABGR<ComponentType, AlphaComponentType>
impl<T, A> Pod for ABGR<T, A> where
T: Pod,
A: Pod,
impl<ComponentType, AlphaComponentType> StructuralEq for ABGR<ComponentType, AlphaComponentType>
impl<ComponentType, AlphaComponentType> StructuralPartialEq for ABGR<ComponentType, AlphaComponentType>
Auto Trait Implementations
impl<ComponentType, AlphaComponentType> RefUnwindSafe for ABGR<ComponentType, AlphaComponentType> where
AlphaComponentType: RefUnwindSafe,
ComponentType: RefUnwindSafe,
impl<ComponentType, AlphaComponentType> Send for ABGR<ComponentType, AlphaComponentType> where
AlphaComponentType: Send,
ComponentType: Send,
impl<ComponentType, AlphaComponentType> Sync for ABGR<ComponentType, AlphaComponentType> where
AlphaComponentType: Sync,
ComponentType: Sync,
impl<ComponentType, AlphaComponentType> Unpin for ABGR<ComponentType, AlphaComponentType> where
AlphaComponentType: Unpin,
ComponentType: Unpin,
impl<ComponentType, AlphaComponentType> UnwindSafe for ABGR<ComponentType, AlphaComponentType> where
AlphaComponentType: UnwindSafe,
ComponentType: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more