Struct read_fonts::tables::colr::BaseGlyph
source · #[repr(C, packed(1))]pub struct BaseGlyph {
pub glyph_id: BigEndian<GlyphId>,
pub first_layer_index: BigEndian<u16>,
pub num_layers: BigEndian<u16>,
}
Expand description
BaseGlyph record
Fields§
§glyph_id: BigEndian<GlyphId>
Glyph ID of the base glyph.
first_layer_index: BigEndian<u16>
Index (base 0) into the layerRecords array.
num_layers: BigEndian<u16>
Number of color layers associated with this glyph.
Implementations§
Trait Implementations§
source§impl FixedSize for BaseGlyph
impl FixedSize for BaseGlyph
source§const RAW_BYTE_LEN: usize = 6usize
const RAW_BYTE_LEN: usize = 6usize
The raw size of this type, in bytes. Read more
source§impl Ord for BaseGlyph
impl Ord for BaseGlyph
source§impl PartialEq for BaseGlyph
impl PartialEq for BaseGlyph
source§impl PartialOrd for BaseGlyph
impl PartialOrd for BaseGlyph
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 BaseGlyph
impl<'a> SomeRecord<'a> for BaseGlyph
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl AnyBitPattern for BaseGlyph
impl Copy for BaseGlyph
impl Eq for BaseGlyph
impl StructuralPartialEq for BaseGlyph
Auto Trait Implementations§
impl Freeze for BaseGlyph
impl RefUnwindSafe for BaseGlyph
impl Send for BaseGlyph
impl Sync for BaseGlyph
impl Unpin for BaseGlyph
impl UnwindSafe for BaseGlyph
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
.