Struct read_fonts::tables::cpal::ColorRecord
source · #[repr(C, packed(1))]pub struct ColorRecord {
pub blue: u8,
pub green: u8,
pub red: u8,
pub alpha: u8,
}
Expand description
CPAL (Color Record) record
Fields§
§blue: u8
Blue value (B0).
green: u8
Green value (B1).
red: u8
Red value (B2).
alpha: u8
Alpha value (B3).
Implementations§
Trait Implementations§
source§impl Clone for ColorRecord
impl Clone for ColorRecord
source§fn clone(&self) -> ColorRecord
fn clone(&self) -> ColorRecord
Returns a copy 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 ColorRecord
impl Debug for ColorRecord
source§impl FixedSize for ColorRecord
impl FixedSize for ColorRecord
source§const RAW_BYTE_LEN: usize = 4usize
const RAW_BYTE_LEN: usize = 4usize
The raw size of this type, in bytes. Read more
source§impl Hash for ColorRecord
impl Hash for ColorRecord
source§impl Ord for ColorRecord
impl Ord for ColorRecord
source§fn cmp(&self, other: &ColorRecord) -> Ordering
fn cmp(&self, other: &ColorRecord) -> 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 ColorRecord
impl PartialEq for ColorRecord
source§impl PartialOrd for ColorRecord
impl PartialOrd for ColorRecord
source§impl<'a> SomeRecord<'a> for ColorRecord
impl<'a> SomeRecord<'a> for ColorRecord
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl AnyBitPattern for ColorRecord
impl Copy for ColorRecord
impl Eq for ColorRecord
impl StructuralPartialEq for ColorRecord
Auto Trait Implementations§
impl Freeze for ColorRecord
impl RefUnwindSafe for ColorRecord
impl Send for ColorRecord
impl Sync for ColorRecord
impl Unpin for ColorRecord
impl UnwindSafe for ColorRecord
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
.source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)