pub trait CharStream: IntStream {
// Required method
fn text(&self, interval: TextInterval) -> String;
// Provided method
fn text_source_interval(
&self,
_interval: TextInterval,
) -> Option<(Rc<str>, usize, usize)> { ... }
}Required Methods§
fn text(&self, interval: TextInterval) -> String
Provided Methods§
fn text_source_interval( &self, _interval: TextInterval, ) -> Option<(Rc<str>, usize, usize)>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".