Struct ttf_parser::tables::colr::ClipRecord
source · struct ClipRecord {
pub start_glyph_id: GlyphId,
pub end_glyph_id: GlyphId,
pub clip_box_offset: Offset24,
}
Expand description
A clip record.
Fields§
§start_glyph_id: GlyphId
The first glyph ID for the range covered by this record.
end_glyph_id: GlyphId
The last glyph ID, inclusive, for the range covered by this record.
clip_box_offset: Offset24
The offset to the clip box.
Implementations§
source§impl ClipRecord
impl ClipRecord
sourcepub fn glyphs_range(&self) -> RangeInclusive<GlyphId>
pub fn glyphs_range(&self) -> RangeInclusive<GlyphId>
Returns the glyphs range.
Trait Implementations§
source§impl Clone for ClipRecord
impl Clone for ClipRecord
source§fn clone(&self) -> ClipRecord
fn clone(&self) -> ClipRecord
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 ClipRecord
impl Debug for ClipRecord
source§impl FromData for ClipRecord
impl FromData for ClipRecord
impl Copy for ClipRecord
Auto Trait Implementations§
impl Freeze for ClipRecord
impl RefUnwindSafe for ClipRecord
impl Send for ClipRecord
impl Sync for ClipRecord
impl Unpin for ClipRecord
impl UnwindSafe for ClipRecord
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