Skip to main content

AatApplyContext

Struct AatApplyContext 

Source
pub struct AatApplyContext<'a, 'f, 'c> {
Show 17 fields pub plan: &'a ShapePlan, pub layout: LayoutData<'a>, pub scale: Scale, font_lifetimes: PhantomData<(&'f (), &'c ())>, pub buffer: &'a mut Buffer, 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, using_buffer_digest: bool, pub(crate) first_set: Option<&'a U32Set>, pub(crate) first_digest: SetDigest, pub(crate) second_set: Option<&'a U32Set>, pub(crate) machine_class_cache: Option<&'a CacheCore<KEY_BITS, VALUE_BITS, CACHE_SIZE, <() as SelectAtomic<STORAGE_BITS>>::Type>>, pub(crate) start_end_safe_to_break: u64, pub(crate) safe_to_break: SafeToBreak<'a>,
}
Expand description

Fields§

§plan: &'a ShapePlan§layout: LayoutData<'a>§scale: Scale§font_lifetimes: PhantomData<(&'f (), &'c ())>§buffer: &'a mut Buffer§has_glyph_classes: bool§range_flags: Option<&'a [RangeFlags]>§subtable_flags: u32§buffer_is_reversed: bool§using_buffer_glyph_set: bool§using_buffer_digest: bool

Whether the buffer’s digest is current, to rule out subtables cheaply.

§first_set: Option<&'a U32Set>§first_digest: SetDigest

A digest of first_set.

§second_set: Option<&'a U32Set>§machine_class_cache: Option<&'a CacheCore<KEY_BITS, VALUE_BITS, CACHE_SIZE, <() as SelectAtomic<STORAGE_BITS>>::Type>>§start_end_safe_to_break: u64§safe_to_break: SafeToBreak<'a>

Implementations§

Source§

impl<'a, 'f, 'c> AatApplyContext<'a, 'f, 'c>

Source

pub fn new( plan: &'a ShapePlan, layout: LayoutData<'a>, scale: Scale, buffer: &'a mut Buffer, ) -> 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 setup_buffer_digest(&mut self, subtable_count: usize)

Prepares the digest that rules out subtables cheaply, if a table has enough subtables to repay building it.

Source

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

Source

pub fn output_glyph(&mut self, glyph: u32) -> Option<()>

Source

pub fn replace_glyph(&mut self, glyph: u32) -> Option<()>

Source

pub fn delete_glyph(&mut self) -> Option<()>

Source

pub fn replace_glyph_inplace(&mut self, i: usize, glyph: u32) -> Option<()>

Auto Trait Implementations§

§

impl<'a, 'f, 'c> !RefUnwindSafe for AatApplyContext<'a, 'f, 'c>

§

impl<'a, 'f, 'c> !UnwindSafe for AatApplyContext<'a, 'f, 'c>

§

impl<'a, 'f, 'c> Freeze for AatApplyContext<'a, 'f, 'c>

§

impl<'a, 'f, 'c> Send for AatApplyContext<'a, 'f, 'c>

§

impl<'a, 'f, 'c> Sync for AatApplyContext<'a, 'f, 'c>

§

impl<'a, 'f, 'c> Unpin for AatApplyContext<'a, 'f, 'c>

§

impl<'a, 'f, 'c> UnsafeUnpin for AatApplyContext<'a, 'f, 'c>

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> ErasedDestructor for T
where T: 'static,

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.