pub trait Utf8Len {
// Required methods
fn utf8_len_at<T>(&self, idx: T) -> usize
where usize: Cast<T>;
fn utf8_count(&self) -> usize;
fn utf8_slice(&self, r: impl uRange) -> &str;
fn slice(&self, r: impl uRange) -> &str;
}Required Methods§
fn utf8_len_at<T>(&self, idx: T) -> usize
fn utf8_count(&self) -> usize
fn utf8_slice(&self, r: impl uRange) -> &str
fn slice(&self, r: impl uRange) -> &str
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.