Type Alias Text
pub type Text = ImString<Arc<String>>;Expand description
Thread-safe immutable string.
This is a convenient type alias for ImString<Threadsafe>. ImString
supports different backing data containers which have unique properties. The
Threadsafe container offers a thread-safe shared storage backed by an
Arc.
If you do not need to use the ImString across multiple threads, then you can also use
Local as the backing store. This does the same but is not threadsafe. It is
marginally faster.
Any type which implements the Data trait can be used as backing stores.
Aliased Typeยง
pub struct Text { /* private fields */ }