pub struct ShapePlanKey<'a> {
script: Option<Script>,
direction: Direction,
language: Option<&'a Language>,
pub(crate) feature_variations: [Option<u32>; 2],
lookup_coords: Option<&'a [F2Dot14]>,
features: &'a [Feature],
}Expand description
The properties used to match a reusable ShapePlan.
Fields§
§script: Option<Script>§direction: Direction§language: Option<&'a Language>§feature_variations: [Option<u32>; 2]§lookup_coords: Option<&'a [F2Dot14]>The font’s location, if lookup variations depend on it.
features: &'a [Feature]Implementations§
Source§impl<'a> ShapePlanKey<'a>
impl<'a> ShapePlanKey<'a>
Sourcepub fn new(font: &'a Font, script: Option<Script>, direction: Direction) -> Self
pub fn new(font: &'a Font, script: Option<Script>, direction: Direction) -> Self
Creates a key for a font, script, and direction.
Sourcepub fn language(self, language: Option<&'a Language>) -> Self
pub fn language(self, language: Option<&'a Language>) -> Self
Sets the language to use for this shape plan key.
Auto Trait Implementations§
impl<'a> Freeze for ShapePlanKey<'a>
impl<'a> RefUnwindSafe for ShapePlanKey<'a>
impl<'a> Send for ShapePlanKey<'a>
impl<'a> Sync for ShapePlanKey<'a>
impl<'a> Unpin for ShapePlanKey<'a>
impl<'a> UnsafeUnpin for ShapePlanKey<'a>
impl<'a> UnwindSafe for ShapePlanKey<'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