pub enum Rgb30ByteOrder {
Host = 0,
Network = 1,
}
Expand description
Represents the byte order for storing RGBA data in 30-bit formats such as RGBA1010102 or RGBA2101010.
§Overview
RGBA1010102 and RGBA2101010 are 30-bit color formats where each component (R, G, B, and A) uses 10 bits for color depth, and the remaining 2 bits are used for additional purposes (e.g., alpha).
In certain systems, the byte order used for storage can differ:
- Host Byte Order: Uses the native endianness of the host machine (little-endian or big-endian).
- Network Byte Order: Always uses big-endian format, often required for consistent data transfer across different platforms or network protocols. Used by Apple.
Variants§
Trait Implementations§
Source§impl Clone for Rgb30ByteOrder
impl Clone for Rgb30ByteOrder
Source§fn clone(&self) -> Rgb30ByteOrder
fn clone(&self) -> Rgb30ByteOrder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Rgb30ByteOrder
impl Debug for Rgb30ByteOrder
Source§impl From<usize> for Rgb30ByteOrder
impl From<usize> for Rgb30ByteOrder
Source§impl Ord for Rgb30ByteOrder
impl Ord for Rgb30ByteOrder
Source§fn cmp(&self, other: &Rgb30ByteOrder) -> Ordering
fn cmp(&self, other: &Rgb30ByteOrder) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Rgb30ByteOrder
impl PartialEq for Rgb30ByteOrder
Source§impl PartialOrd for Rgb30ByteOrder
impl PartialOrd for Rgb30ByteOrder
impl Copy for Rgb30ByteOrder
impl Eq for Rgb30ByteOrder
impl StructuralPartialEq for Rgb30ByteOrder
Auto Trait Implementations§
impl Freeze for Rgb30ByteOrder
impl RefUnwindSafe for Rgb30ByteOrder
impl Send for Rgb30ByteOrder
impl Sync for Rgb30ByteOrder
impl Unpin for Rgb30ByteOrder
impl UnwindSafe for Rgb30ByteOrder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more