Skip to main content

CollectGlyphs

Trait CollectGlyphs 

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

Required Methods§

Source

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

For each valid index, read the value of type T. If filter(&value) returns true, insert the index 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 CollectGlyphs for ClassSubtable<'_>

Source§

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

Implementors§