Struct rgb::alt::BGRA [−][src]
#[repr(C)]pub struct BGRA<ComponentType, AlphaComponentType = ComponentType> { pub b: ComponentType, pub g: ComponentType, pub r: ComponentType, pub a: AlphaComponentType, }
BGR+A
Fields
b: ComponentType
Blue first
g: ComponentType
Green
r: ComponentType
Red
a: AlphaComponentType
Alpha last
Implementations
impl<T, A> BGRA<T, A>
[src]
impl<T, A> BGRA<T, A>
[src]impl<T: Copy, A: Clone> BGRA<T, A>
[src]
impl<T: Copy, A: Clone> BGRA<T, A>
[src]Trait Implementations
impl<T> AsPixels<BGRA<T, T>> for [T]
[src]
impl<T> AsPixels<BGRA<T, T>> for [T]
[src]impl<ComponentType: Clone, AlphaComponentType: Clone> Clone for BGRA<ComponentType, AlphaComponentType>
[src]
impl<ComponentType: Clone, AlphaComponentType: Clone> Clone for BGRA<ComponentType, AlphaComponentType>
[src]impl<T: Copy, B> ComponentMap<BGRA<B, B>, T, B> for BGRA<T>
[src]
impl<T: Copy, B> ComponentMap<BGRA<B, B>, T, B> for BGRA<T>
[src]impl<T> ComponentSlice<T> for BGRA<T>
[src]
impl<T> ComponentSlice<T> for BGRA<T>
[src]impl<ComponentType: Debug, AlphaComponentType: Debug> Debug for BGRA<ComponentType, AlphaComponentType>
[src]
impl<ComponentType: Debug, AlphaComponentType: Debug> Debug for BGRA<ComponentType, AlphaComponentType>
[src]impl<ComponentType: Default, AlphaComponentType: Default> Default for BGRA<ComponentType, AlphaComponentType>
[src]
impl<ComponentType: Default, AlphaComponentType: Default> Default for BGRA<ComponentType, AlphaComponentType>
[src]impl<'de, ComponentType, AlphaComponentType> Deserialize<'de> for BGRA<ComponentType, AlphaComponentType> where
ComponentType: Deserialize<'de>,
AlphaComponentType: Deserialize<'de>,
[src]
impl<'de, ComponentType, AlphaComponentType> Deserialize<'de> for BGRA<ComponentType, AlphaComponentType> where
ComponentType: Deserialize<'de>,
AlphaComponentType: Deserialize<'de>,
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl<ComponentType: Hash, AlphaComponentType: Hash> Hash for BGRA<ComponentType, AlphaComponentType>
[src]
impl<ComponentType: Hash, AlphaComponentType: Hash> Hash for BGRA<ComponentType, AlphaComponentType>
[src]impl<ComponentType: Ord, AlphaComponentType: Ord> Ord for BGRA<ComponentType, AlphaComponentType>
[src]
impl<ComponentType: Ord, AlphaComponentType: Ord> Ord for BGRA<ComponentType, AlphaComponentType>
[src]#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]Compares and returns the maximum of two values. Read more
impl<ComponentType: PartialEq, AlphaComponentType: PartialEq> PartialEq<BGRA<ComponentType, AlphaComponentType>> for BGRA<ComponentType, AlphaComponentType>
[src]
impl<ComponentType: PartialEq, AlphaComponentType: PartialEq> PartialEq<BGRA<ComponentType, AlphaComponentType>> for BGRA<ComponentType, AlphaComponentType>
[src]impl<ComponentType: PartialOrd, AlphaComponentType: PartialOrd> PartialOrd<BGRA<ComponentType, AlphaComponentType>> for BGRA<ComponentType, AlphaComponentType>
[src]
impl<ComponentType: PartialOrd, AlphaComponentType: PartialOrd> PartialOrd<BGRA<ComponentType, AlphaComponentType>> for BGRA<ComponentType, AlphaComponentType>
[src]fn partial_cmp(
&self,
other: &BGRA<ComponentType, AlphaComponentType>
) -> Option<Ordering>
[src]
fn partial_cmp(
&self,
other: &BGRA<ComponentType, AlphaComponentType>
) -> 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<ComponentType, AlphaComponentType> Serialize for BGRA<ComponentType, AlphaComponentType> where
ComponentType: Serialize,
AlphaComponentType: Serialize,
[src]
impl<ComponentType, AlphaComponentType> Serialize for BGRA<ComponentType, AlphaComponentType> where
ComponentType: Serialize,
AlphaComponentType: Serialize,
[src]impl<ComponentType: Copy, AlphaComponentType: Copy> Copy for BGRA<ComponentType, AlphaComponentType>
[src]
impl<ComponentType: Eq, AlphaComponentType: Eq> Eq for BGRA<ComponentType, AlphaComponentType>
[src]
impl<T, A> Pod for BGRA<T, A> where
T: Pod,
A: Pod,
[src]
T: Pod,
A: Pod,
impl<ComponentType, AlphaComponentType> StructuralEq for BGRA<ComponentType, AlphaComponentType>
[src]
impl<ComponentType, AlphaComponentType> StructuralPartialEq for BGRA<ComponentType, AlphaComponentType>
[src]
Auto Trait Implementations
impl<ComponentType, AlphaComponentType> RefUnwindSafe for BGRA<ComponentType, AlphaComponentType> where
AlphaComponentType: RefUnwindSafe,
ComponentType: RefUnwindSafe,
AlphaComponentType: RefUnwindSafe,
ComponentType: RefUnwindSafe,
impl<ComponentType, AlphaComponentType> Send for BGRA<ComponentType, AlphaComponentType> where
AlphaComponentType: Send,
ComponentType: Send,
AlphaComponentType: Send,
ComponentType: Send,
impl<ComponentType, AlphaComponentType> Sync for BGRA<ComponentType, AlphaComponentType> where
AlphaComponentType: Sync,
ComponentType: Sync,
AlphaComponentType: Sync,
ComponentType: Sync,
impl<ComponentType, AlphaComponentType> Unpin for BGRA<ComponentType, AlphaComponentType> where
AlphaComponentType: Unpin,
ComponentType: Unpin,
AlphaComponentType: Unpin,
ComponentType: Unpin,
impl<ComponentType, AlphaComponentType> UnwindSafe for BGRA<ComponentType, AlphaComponentType> where
AlphaComponentType: UnwindSafe,
ComponentType: UnwindSafe,
AlphaComponentType: 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> 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
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,