Type Definition druid::ArcStr

source ·
pub type ArcStr = Arc<str>;
Expand description

A reference counted string slice.

This is a data-friendly way to represent strings in Druid. Unlike String it cannot be mutated, but unlike String it can be cheaply cloned.

Trait Implementations§

Converts to this type from the input type.
If this TextStorage object manages style spans, it should implement this method and update the provided builder with its spans, as required.
This is called whenever the Env changes and should return true if the layout should be rebuilt.
Any additional Link attributes on this text. Read more
Attempt to convert the generic Value into this type.