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§
Sourcefn collect_glyphs_filtered<F>(
&self,
_set: &mut U32Set,
_num_glyphs: u32,
_filter: F,
)
fn collect_glyphs_filtered<F>( &self, _set: &mut U32Set, _num_glyphs: u32, _filter: F, )
For each valid index, read the value of type T.
If filter(&value) returns true, insert the index into set.
Provided Methods§
Sourcefn collect_glyphs(&self, set: &mut U32Set, num_glyphs: u32)
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".