pub trait Text: Bytes {
// Required method
fn as_str(&self) -> &str;
}Expand description
Immutable UTF-8 text while its field owner is shared.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".