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