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