pub struct CvarTable<'a> {
pub major_version: u16,
pub minor_version: u16,
pub store: TupleVariationStore<'a, Cvar>,
}Expand description
cvar CVT Variations Table
https://learn.microsoft.com/en-us/typography/opentype/spec/cvar#table-format
Fields§
§major_version: u16Major version number of the glyph variations table.
minor_version: u16Minor version number of the glyph variations table.
store: TupleVariationStore<'a, Cvar>Variation data
Implementations§
Source§impl CvarTable<'_>
impl CvarTable<'_>
Sourcepub fn apply<'new>(
&self,
instance: &OwnedTuple,
cvt: &CvtTable<'_>,
) -> Result<CvtTable<'new>, ParseError>
pub fn apply<'new>( &self, instance: &OwnedTuple, cvt: &CvtTable<'_>, ) -> Result<CvtTable<'new>, ParseError>
Apply cvar variations to cvt table, returning adjusted table.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for CvarTable<'a>
impl<'a> RefUnwindSafe for CvarTable<'a>
impl<'a> Send for CvarTable<'a>
impl<'a> Sync for CvarTable<'a>
impl<'a> Unpin for CvarTable<'a>
impl<'a> UnwindSafe for CvarTable<'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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more