Struct ttf_parser::tables::colr::ClipList
source · struct ClipList<'a> {
data: &'a [u8],
records: LazyArray32<'a, ClipRecord>,
}
Expand description
A clip list.
Fields§
§data: &'a [u8]
§records: LazyArray32<'a, ClipRecord>
Implementations§
source§impl<'a> ClipList<'a>
impl<'a> ClipList<'a>
pub fn get( &self, index: u32, variation_data: &VariationData<'_>, coords: &[NormalizedCoordinate], ) -> Option<ClipBox>
sourcepub fn find(
&self,
glyph_id: GlyphId,
variation_data: &VariationData<'_>,
coords: &[NormalizedCoordinate],
) -> Option<ClipBox>
pub fn find( &self, glyph_id: GlyphId, variation_data: &VariationData<'_>, coords: &[NormalizedCoordinate], ) -> Option<ClipBox>
Returns a ClipBox by glyph ID.
Trait Implementations§
impl<'a> Copy for ClipList<'a>
Auto Trait Implementations§
impl<'a> Freeze for ClipList<'a>
impl<'a> RefUnwindSafe for ClipList<'a>
impl<'a> Send for ClipList<'a>
impl<'a> Sync for ClipList<'a>
impl<'a> Unpin for ClipList<'a>
impl<'a> UnwindSafe for ClipList<'a>
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> 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
)