Skip to main content

AatApplyContext

Struct AatApplyContext 

Source
pub struct AatApplyContext<'a> {
Show 13 fields pub plan: &'a hb_ot_shape_plan_t, pub face: &'a hb_font_t<'a>, pub scale: Scale, pub buffer: &'a mut hb_buffer_t, pub has_glyph_classes: bool, pub range_flags: Option<&'a [RangeFlags]>, pub subtable_flags: u32, pub(crate) buffer_is_reversed: bool, using_buffer_glyph_set: bool, pub(crate) first_set: Option<&'a U32Set>, pub(crate) second_set: Option<&'a U32Set>, pub(crate) machine_class_cache: Option<&'a hb_cache_core_t<KEY_BITS, VALUE_BITS, CACHE_SIZE, <() as SelectAtomic<STORAGE_BITS>>::Type>>, pub(crate) start_end_safe_to_break: u64,
}
Expand description

Fields§

§plan: &'a hb_ot_shape_plan_t§face: &'a hb_font_t<'a>§scale: Scale§buffer: &'a mut hb_buffer_t§has_glyph_classes: bool§range_flags: Option<&'a [RangeFlags]>§subtable_flags: u32§buffer_is_reversed: bool§using_buffer_glyph_set: bool§first_set: Option<&'a U32Set>§second_set: Option<&'a U32Set>§machine_class_cache: Option<&'a hb_cache_core_t<KEY_BITS, VALUE_BITS, CACHE_SIZE, <() as SelectAtomic<STORAGE_BITS>>::Type>>§start_end_safe_to_break: u64

Implementations§

Source§

impl<'a> AatApplyContext<'a>

Source

pub fn new( plan: &'a hb_ot_shape_plan_t, face: &'a hb_font_t<'a>, scale: Scale, buffer: &'a mut hb_buffer_t, ) -> Self

Source

pub(crate) fn scale_x(&self, value: i32) -> i32

Source

pub(crate) fn scale_y(&self, value: i32) -> i32

Source

pub(crate) fn reverse_buffer(&mut self)

Source

pub(crate) fn setup_buffer_glyph_set(&mut self)

Source

pub(crate) fn buffer_intersects_machine(&self) -> bool

Source

pub fn output_glyph(&mut self, glyph: u32)

Source

pub fn replace_glyph(&mut self, glyph: u32)

Source

pub fn delete_glyph(&mut self)

Source

pub fn replace_glyph_inplace(&mut self, i: usize, glyph: u32)

Auto Trait Implementations§

§

impl<'a> Freeze for AatApplyContext<'a>

§

impl<'a> !RefUnwindSafe for AatApplyContext<'a>

§

impl<'a> Send for AatApplyContext<'a>

§

impl<'a> Sync for AatApplyContext<'a>

§

impl<'a> Unpin for AatApplyContext<'a>

§

impl<'a> UnsafeUnpin for AatApplyContext<'a>

§

impl<'a> !UnwindSafe for AatApplyContext<'a>

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.