pub trait TryToCharacterIterator<Reader: Read> {
// Required methods
fn try_to_character_iterator(
&self,
) -> Result<CharacterIterator<CharacterStream<Reader>>, Box<dyn Error>>;
fn try_to_character_iterator_lossy(
&self,
) -> Result<CharacterIterator<CharacterStream<Reader>>, Box<dyn Error>>;
}Expand description
Trait for easy conversion of a type into a CharacterIterator with a potential for failure.
Required Methods§
Sourcefn try_to_character_iterator(
&self,
) -> Result<CharacterIterator<CharacterStream<Reader>>, Box<dyn Error>>
fn try_to_character_iterator( &self, ) -> Result<CharacterIterator<CharacterStream<Reader>>, Box<dyn Error>>
Attempt to convert into a CharacterIterator.
Sourcefn try_to_character_iterator_lossy(
&self,
) -> Result<CharacterIterator<CharacterStream<Reader>>, Box<dyn Error>>
fn try_to_character_iterator_lossy( &self, ) -> Result<CharacterIterator<CharacterStream<Reader>>, Box<dyn Error>>
Attempt to convert into a lossy CharacterIterator.