Struct ClosureCtx

Source
pub(super) struct ClosureCtx<'a> {
    glyphs: &'a mut IntSet<GlyphId>,
    active_glyphs_stack: Vec<IntSet<GlyphId>>,
    output: IntSet<GlyphId>,
    lookup_count: u16,
    nesting_level_left: u8,
    done_lookups_glyphs: HashMap<u16, (u64, IntSet<GlyphId>)>,
}

Fields§

§glyphs: &'a mut IntSet<GlyphId>

the current closure glyphs. This is updated as we go.

§active_glyphs_stack: Vec<IntSet<GlyphId>>§output: IntSet<GlyphId>§lookup_count: u16§nesting_level_left: u8§done_lookups_glyphs: HashMap<u16, (u64, IntSet<GlyphId>)>

Implementations§

Source§

impl<'a> ClosureCtx<'a>

Source

pub(super) fn new(glyphs: &'a mut IntSet<GlyphId>) -> Self

Source

pub(super) fn lookup_limit_exceed(&self) -> bool

Source

pub(super) fn parent_active_glyphs(&self) -> &IntSet<GlyphId>

Source

pub(super) fn push_cur_active_glyphs(&mut self, glyphs: IntSet<GlyphId>)

Source

pub(super) fn pop_cur_done_glyphs(&mut self)

Source

pub(super) fn recurse( &mut self, lookup_list: &SubstitutionLookupList<'_>, lookup: &SubstitutionLookup<'_>, lookup_index: u16, glyphs: IntSet<GlyphId>, ) -> Result<(), ReadError>

Source

pub(super) fn reset_lookup_visit_count(&mut self)

Source

pub(super) fn should_visit_lookup(&mut self, lookup_index: u16) -> bool

Source

pub(super) fn is_lookup_done(&mut self, lookup_index: u16) -> bool

Source

pub(super) fn glyphs(&self) -> &IntSet<GlyphId>

Source

pub(super) fn add(&mut self, gid: GlyphId)

Source

pub(super) fn add_glyphs(&mut self, iter: impl IntoIterator<Item = GlyphId>)

Source

pub(super) fn flush(&mut self)

Auto Trait Implementations§

§

impl<'a> !Freeze for ClosureCtx<'a>

§

impl<'a> RefUnwindSafe for ClosureCtx<'a>

§

impl<'a> Send for ClosureCtx<'a>

§

impl<'a> Sync for ClosureCtx<'a>

§

impl<'a> Unpin for ClosureCtx<'a>

§

impl<'a> !UnwindSafe for ClosureCtx<'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.