Function liquid::compiler::expect [] [src]

pub fn expect<'a, T>(
    tokens: &mut T,
    expected: &Token
) -> Result<&'a Token, Error> where
    T: Iterator<Item = &'a Token>, 

Confirm that the next token in a token stream is what you want it to be. The token iterator is moved to the next token in the stream.