Struct ShapePlan

Source
pub struct ShapePlan {
Show 26 fields pub(crate) direction: Direction, pub(crate) script: Option<Script>, pub(crate) shaper: &'static hb_ot_shaper_t, pub(crate) ot_map: hb_ot_map_t, pub(crate) data: Option<Box<dyn Any + Send + Sync>>, pub(crate) frac_mask: u32, pub(crate) numr_mask: u32, pub(crate) dnom_mask: u32, pub(crate) rtlm_mask: u32, pub(crate) kern_mask: u32, pub(crate) trak_mask: u32, pub(crate) requested_kerning: bool, pub(crate) has_frac: bool, pub(crate) has_vert: bool, pub(crate) has_gpos_mark: bool, pub(crate) zero_marks: bool, pub(crate) fallback_glyph_classes: bool, pub(crate) fallback_mark_positioning: bool, pub(crate) adjust_mark_positioning_when_zeroing: bool, pub(crate) apply_gpos: bool, pub(crate) apply_fallback_kern: bool, pub(crate) apply_kern: bool, pub(crate) apply_kerx: bool, pub(crate) apply_morx: bool, pub(crate) apply_trak: bool, pub(crate) user_features: Vec<Feature>,
}
Expand description

A reusable plan for shaping a text buffer.

Fields§

§direction: Direction§script: Option<Script>§shaper: &'static hb_ot_shaper_t§ot_map: hb_ot_map_t§data: Option<Box<dyn Any + Send + Sync>>§frac_mask: u32§numr_mask: u32§dnom_mask: u32§rtlm_mask: u32§kern_mask: u32§trak_mask: u32§requested_kerning: bool§has_frac: bool§has_vert: bool§has_gpos_mark: bool§zero_marks: bool§fallback_glyph_classes: bool§fallback_mark_positioning: bool§adjust_mark_positioning_when_zeroing: bool§apply_gpos: bool§apply_fallback_kern: bool§apply_kern: bool§apply_kerx: bool§apply_morx: bool§apply_trak: bool§user_features: Vec<Feature>

Implementations§

Source§

impl hb_ot_shape_plan_t

Source

pub fn new( face: &hb_font_t<'_>, direction: Direction, script: Option<Script>, language: Option<&Language>, user_features: &[Feature], ) -> Self

Returns a plan that can be used for shaping any buffer with the provided properties.

Source

pub(crate) fn data<T: 'static>(&self) -> &T

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.