Trait AttributesFactory
pub trait AttributesFactory:
Send
+ Sync
+ 'static {
// Required method
fn attributes(&self, size_hint: usize, ctx: &Context) -> Vec<KeyValue>;
}
Expand description
Trait that can be used to implement your own attributes creator. It is used by layers as a starting point for attributes, and they will add their own attributes on top.