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.
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.