Trait oak_runtime::stream::ConsumePrefix
[−]
[src]
pub trait ConsumePrefix<P> { fn consume_prefix(&mut self, prefix: P) -> bool; }
Consumes prefix
if it fully matches from the current position in the stream. If it does not match, the stream is not altered and false
is returned.
Required Methods
fn consume_prefix(&mut self, prefix: P) -> bool
Implementors
impl<'a> ConsumePrefix<&'static str> for StrStream<'a>
impl<S, T, P> ConsumePrefix<P> for ParseState<S, T> where S: ConsumePrefix<P>
impl<'a> ConsumePrefix<&'static str> for FileMapStream<'a>