oak_runtime::stream

Trait Location

Source
pub trait Location {
    // Required method
    fn location(&self) -> String;
}
Expand description

Produces a textual representation of the current position in the stream. For example, it can be 2:5 if the position is at line 2 and column 5.

Required Methods§

Source

fn location(&self) -> String

Implementors§

Source§

impl<'a> Location for FileMapStream<'a>

Source§

impl<'a> Location for StrStream<'a>