#[repr(C)]pub struct r16g16b16a16_Unorm {
pub r: u16,
pub g: u16,
pub b: u16,
pub a: u16,
}
Expand description
Linear RGBA data, u16
per channel.
Fields§
§r: u16
§g: u16
§b: u16
§a: u16
Implementations§
Source§impl r16g16b16a16_Unorm
impl r16g16b16a16_Unorm
pub const OPAQUE_BLACK: Self
pub const OPAQUE_WHITE: Self
pub const TRANSPARENT_BLACK: Self
Trait Implementations§
Source§impl Clone for r16g16b16a16_Unorm
impl Clone for r16g16b16a16_Unorm
Source§fn clone(&self) -> r16g16b16a16_Unorm
fn clone(&self) -> r16g16b16a16_Unorm
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 r16g16b16a16_Unorm
impl Debug for r16g16b16a16_Unorm
Source§impl Default for r16g16b16a16_Unorm
impl Default for r16g16b16a16_Unorm
Source§fn default() -> r16g16b16a16_Unorm
fn default() -> r16g16b16a16_Unorm
Returns the “default value” for a type. Read more
Source§impl Hash for r16g16b16a16_Unorm
impl Hash for r16g16b16a16_Unorm
Source§impl Ord for r16g16b16a16_Unorm
impl Ord for r16g16b16a16_Unorm
Source§fn cmp(&self, other: &r16g16b16a16_Unorm) -> Ordering
fn cmp(&self, other: &r16g16b16a16_Unorm) -> 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 r16g16b16a16_Unorm
impl PartialEq for r16g16b16a16_Unorm
Source§impl PartialOrd for r16g16b16a16_Unorm
impl PartialOrd for r16g16b16a16_Unorm
impl Copy for r16g16b16a16_Unorm
impl Eq for r16g16b16a16_Unorm
impl Pod for r16g16b16a16_Unorm
impl StructuralPartialEq for r16g16b16a16_Unorm
Auto Trait Implementations§
impl Freeze for r16g16b16a16_Unorm
impl RefUnwindSafe for r16g16b16a16_Unorm
impl Send for r16g16b16a16_Unorm
impl Sync for r16g16b16a16_Unorm
impl Unpin for r16g16b16a16_Unorm
impl UnwindSafe for r16g16b16a16_Unorm
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.