Struct read_fonts::tables::colr::Layer
source · #[repr(C, packed(1))]pub struct Layer {
pub glyph_id: BigEndian<GlyphId>,
pub palette_index: BigEndian<u16>,
}
Expand description
Layer record
Fields§
§glyph_id: BigEndian<GlyphId>
Glyph ID of the glyph used for a given layer.
palette_index: BigEndian<u16>
Index (base 0) for a palette entry in the CPAL table.
Implementations§
Trait Implementations§
source§impl FixedSize for Layer
impl FixedSize for Layer
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 Ord for Layer
impl Ord for Layer
source§impl PartialEq for Layer
impl PartialEq for Layer
source§impl PartialOrd for Layer
impl PartialOrd for Layer
1.0.0 · source§fn 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 moresource§impl<'a> SomeRecord<'a> for Layer
impl<'a> SomeRecord<'a> for Layer
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl AnyBitPattern for Layer
impl Copy for Layer
impl Eq for Layer
impl StructuralPartialEq for Layer
Auto Trait Implementations§
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnwindSafe for Layer
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,
§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
.