[−][src]Trait oak_runtime::stream::ConsumePrefix
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
pub fn consume_prefix(&mut self, prefix: P) -> bool
[src]
Implementors
impl<'a> ConsumePrefix<&'static str> for FileMapStream<'a>
[src]
pub fn consume_prefix(&mut self, prefix: &'static str) -> bool
[src]
impl<'a> ConsumePrefix<&'static str> for StrStream<'a>
[src]
pub fn consume_prefix(&mut self, prefix: &'static str) -> bool
[src]
impl<S, T, P> ConsumePrefix<P> for ParseState<S, T> where
S: ConsumePrefix<P>,
[src]
S: ConsumePrefix<P>,