pub trait Utf16Str {
// Required method
fn chars_lossy(&self) -> impl Iterator<Item = char>;
}
Expand description
Trait for working with UTF-16BE and UTF-16LE strings.
Required Methods§
Sourcefn chars_lossy(&self) -> impl Iterator<Item = char>
fn chars_lossy(&self) -> impl Iterator<Item = char>
Returns a lossy iterator over the characters of the string.
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.