Struct ttf_parser::var_store::ItemVariationStore
source · pub(crate) struct ItemVariationStore<'a> {
data: &'a [u8],
data_offsets: LazyArray16<'a, u32>,
pub regions: VariationRegionList<'a>,
}
Fields§
§data: &'a [u8]
§data_offsets: LazyArray16<'a, u32>
§regions: VariationRegionList<'a>
Implementations§
source§impl<'a> ItemVariationStore<'a>
impl<'a> ItemVariationStore<'a>
pub fn parse(s: Stream<'_>) -> Option<ItemVariationStore<'_>>
pub fn region_indices(&self, index: u16) -> Option<LazyArray16<'_, u16>>
pub fn parse_delta( &self, outer_index: u16, inner_index: u16, coordinates: &[NormalizedCoordinate], ) -> Option<f32>
Trait Implementations§
source§impl<'a> Clone for ItemVariationStore<'a>
impl<'a> Clone for ItemVariationStore<'a>
source§fn clone(&self) -> ItemVariationStore<'a>
fn clone(&self) -> ItemVariationStore<'a>
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<'a> Debug for ItemVariationStore<'a>
impl<'a> Debug for ItemVariationStore<'a>
source§impl<'a> Default for ItemVariationStore<'a>
impl<'a> Default for ItemVariationStore<'a>
impl<'a> Copy for ItemVariationStore<'a>
Auto Trait Implementations§
impl<'a> Freeze for ItemVariationStore<'a>
impl<'a> RefUnwindSafe for ItemVariationStore<'a>
impl<'a> Send for ItemVariationStore<'a>
impl<'a> Sync for ItemVariationStore<'a>
impl<'a> Unpin for ItemVariationStore<'a>
impl<'a> UnwindSafe for ItemVariationStore<'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