[][src]Trait oak_runtime::stream::ConsumePrefix

pub trait ConsumePrefix<P> {
    pub 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

pub fn consume_prefix(&mut self, prefix: P) -> bool[src]

Loading content...

Implementors

impl<'a> ConsumePrefix<&'static str> for FileMapStream<'a>[src]

impl<'a> ConsumePrefix<&'static str> for StrStream<'a>[src]

impl<S, T, P> ConsumePrefix<P> for ParseState<S, T> where
    S: ConsumePrefix<P>, 
[src]

Loading content...