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

Implementors