Skip to main content

TypedCollectGlyphs

Trait TypedCollectGlyphs 

Source
pub trait TypedCollectGlyphs<T: LookupValue> {
    // Required method
    fn collect_glyphs_filtered<F>(
        &self,
        _set: &mut U32Set,
        _num_glyphs: u32,
        _filter: F,
    )
       where F: Fn(T) -> bool;

    // Provided method
    fn collect_glyphs(&self, set: &mut U32Set, num_glyphs: u32) { ... }
}

Required Methods§

Source

fn collect_glyphs_filtered<F>( &self, _set: &mut U32Set, _num_glyphs: u32, _filter: F, )
where F: Fn(T) -> bool,

For each valid index, read the value of type T. If filter(&value) returns true, insert the index into set.

Provided Methods§

Source

fn collect_glyphs(&self, set: &mut U32Set, num_glyphs: u32)

Add all indices into set.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> TypedCollectGlyphs<T> for TypedLookup<'_, T>
where T: LookupValue,

Source§

fn collect_glyphs(&self, set: &mut U32Set, num_glyphs: u32)

Source§

fn collect_glyphs_filtered<F>( &self, set: &mut U32Set, num_glyphs: u32, filter: F, )
where F: Fn(T) -> bool,

Implementors§