Trait oak_runtime::stream::CodeSnippet
[−]
[src]
pub trait CodeSnippet { fn code_snippet(&self, len_hint: usize) -> String; }
Produces a code snippet of size len_hint
or less starting from the current position in the stream.
Required Methods
fn code_snippet(&self, len_hint: usize) -> String
Implementors
impl<'a> CodeSnippet for StrStream<'a>
impl<'a> CodeSnippet for FileMapStream<'a>