pub trait TextSlice: Sealed {
// Required method
fn slice(&self, range: impl Ranged) -> &str;
}Expand description
A slice of the source text.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".