pub trait ToCharacterStream<Reader: Read> {
// Required methods
fn to_character_stream(&self) -> CharacterStream<Reader>;
fn to_character_stream_lossy(&self) -> CharacterStream<Reader>;
}Expand description
Helper trait for converting values into a CharacterStream.
Required Methods§
Sourcefn to_character_stream(&self) -> CharacterStream<Reader>
fn to_character_stream(&self) -> CharacterStream<Reader>
Convert into a CharacterStream.
Sourcefn to_character_stream_lossy(&self) -> CharacterStream<Reader>
fn to_character_stream_lossy(&self) -> CharacterStream<Reader>
Convert into a lossy CharacterStream.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".