Skip to main content

TextLineSource

Trait TextLineSource 

Source
pub trait TextLineSource<C: Character> {
    // Required method
    fn get_line(&mut self) -> Option<TextLine<C>>;
}
Expand description

A source of lines of characters, e.g. a file or a string.

Required Methods§

Source

fn get_line(&mut self) -> Option<TextLine<C>>

returns the next line of characters, or None if there are no more lines.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§