pub trait TextType: Eq + Hash + Clone + Debug { }
Expand description

Trait for types that can be used as the text of this label. The most simple solution is to use String. However, in many cases where the same text is used in many labels it might be desirable to use ‘string interning’ for more efficient memory usage. Then an Rc<String> could be used for instance.



impl<T> TextType for Twhere T: Eq + Hash + Clone + Debug,