pub trait StringStorage: Clone + Display {
type Span: Copy + Debug + PartialEq + Eq + Hash;
}Expand description
Trait for string storage types.
This trait abstracts over different string storage strategies, enabling both zero-copy parsing (with borrowed data) and owned data representations.
§Implementors
String- Owned string dataSegments<'src>- Zero-copy borrowed segments
Required Associated Types§
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.