Struct read_fonts::tables::colr::BaseGlyphPaint
source · #[repr(C, packed(1))]pub struct BaseGlyphPaint {
pub glyph_id: BigEndian<GlyphId16>,
pub paint_offset: BigEndian<Offset32>,
}
Expand description
BaseGlyphPaint record
Fields§
§glyph_id: BigEndian<GlyphId16>
Glyph ID of the base glyph.
paint_offset: BigEndian<Offset32>
Offset to a Paint table, from the beginning of the BaseGlyphList
table.
Implementations§
source§impl BaseGlyphPaint
impl BaseGlyphPaint
sourcepub fn paint_offset(&self) -> Offset32
pub fn paint_offset(&self) -> Offset32
Offset to a Paint table, from the beginning of the BaseGlyphList
table.
Trait Implementations§
source§impl Clone for BaseGlyphPaint
impl Clone for BaseGlyphPaint
source§fn clone(&self) -> BaseGlyphPaint
fn clone(&self) -> BaseGlyphPaint
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 BaseGlyphPaint
impl Debug for BaseGlyphPaint
source§impl FixedSize for BaseGlyphPaint
impl FixedSize for BaseGlyphPaint
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<'a> SomeRecord<'a> for BaseGlyphPaint
impl<'a> SomeRecord<'a> for BaseGlyphPaint
fn traverse(self, data: FontData<'a>) -> RecordResolver<'a>
impl AnyBitPattern for BaseGlyphPaint
impl Copy for BaseGlyphPaint
Auto Trait Implementations§
impl Freeze for BaseGlyphPaint
impl RefUnwindSafe for BaseGlyphPaint
impl Send for BaseGlyphPaint
impl Sync for BaseGlyphPaint
impl Unpin for BaseGlyphPaint
impl UnwindSafe for BaseGlyphPaint
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
)