pub trait ByteRangeExt {
// Required methods
fn full(text: &str) -> Self;
fn as_usize(&self) -> Range<usize> ⓘ;
fn slice<'s>(&self, text: &'s str) -> &'s str;
}Expand description
Extension methods for a ByteRange.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".