pub struct ShapePlanKey<'a> { /* private fields */ }
Expand description
A key used for selecting a shape plan.
Implementations§
Source§impl<'a> ShapePlanKey<'a>
impl<'a> ShapePlanKey<'a>
Sourcepub fn new(script: Option<Script>, direction: Direction) -> Self
pub fn new(script: Option<Script>, direction: Direction) -> Self
Creates a new shape plan key with the given 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.
Sourcepub fn instance(self, instance: Option<&ShaperInstance>) -> Self
pub fn instance(self, instance: Option<&ShaperInstance>) -> Self
Sets the instance to use for this shape plan key.
Sourcepub fn features(self, features: &'a [Feature]) -> Self
pub fn features(self, features: &'a [Feature]) -> Self
Sets the features to use for this shape plan key.
Sourcepub fn matches(&self, plan: &hb_ot_shape_plan_t) -> bool
pub fn matches(&self, plan: &hb_ot_shape_plan_t) -> bool
Returns true if this key is a match for the given shape plan.
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> 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