pub trait CharCollection {
type Error;
// Required methods
fn try_count_chars(&self) -> Result<usize, Self::Error>;
fn try_get_first_char(&self) -> Result<Option<char>, Self::Error>;
fn try_iter_chars(
&self,
) -> Result<impl Iterator<Item = Result<char, Self::Error>> + '_, Self::Error>;
}Required Associated Types§
Required Methods§
fn try_count_chars(&self) -> Result<usize, Self::Error>
fn try_get_first_char(&self) -> Result<Option<char>, Self::Error>
fn try_iter_chars( &self, ) -> Result<impl Iterator<Item = Result<char, Self::Error>> + '_, Self::Error>
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.