Skip to main content

CollectGlyphs

Trait CollectGlyphs 

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

    // Provided method
    fn collect_glyphs<T>(&self, set: &mut U32Set, num_glyphs: u32)
       where T: LookupValue { ... }
}

Required Methods§

Source

fn collect_glyphs_filtered<T, F>( &self, _set: &mut U32Set, _num_glyphs: u32, _filter: F, )
where T: LookupValue, 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<T>(&self, set: &mut U32Set, num_glyphs: u32)
where T: LookupValue,

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 CollectGlyphs for Lookup<'_>

Source§

fn collect_glyphs<T>(&self, set: &mut U32Set, num_glyphs: u32)
where T: LookupValue,

Source§

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

Source§

impl CollectGlyphs for Lookup0<'_>

Source§

fn collect_glyphs<T>(&self, set: &mut U32Set, num_glyphs: u32)
where T: LookupValue,

Source§

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

Source§

impl CollectGlyphs for Lookup2<'_>

Source§

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

Source§

impl CollectGlyphs for Lookup4<'_>

Source§

fn collect_glyphs<T>(&self, set: &mut U32Set, _num_glyphs: u32)
where T: LookupValue,

Source§

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

Source§

impl CollectGlyphs for Lookup6<'_>

Source§

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

Source§

impl CollectGlyphs for Lookup8<'_>

Source§

fn collect_glyphs<T>(&self, set: &mut U32Set, _num_glyphs: u32)
where T: LookupValue,

Source§

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

Source§

impl CollectGlyphs for Lookup10<'_>

Source§

fn collect_glyphs<T>(&self, set: &mut U32Set, _num_glyphs: u32)
where T: LookupValue,

Source§

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

Implementors§