Skip to main content

CharStream

Trait CharStream 

Source
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§

Source

fn text(&self, interval: TextInterval) -> String

Provided Methods§

Source

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".

Implementors§