souper_ir::parse

Trait Peek

Source
pub trait Peek {
    // Required method
    fn peek<'a>(parser: &mut Parser<'a>) -> Result<bool>;
}
Expand description

A trait for whether an AST node looks like it comes next.

Required Methods§

Source

fn peek<'a>(parser: &mut Parser<'a>) -> Result<bool>

Does it look like we can parse a Self from the given buffer?

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§