INNER CODE UNIT · Rust

expect_expr

c3rb3ru5d3d53c/binlex · crates/libvex/libvex-macros/src/lib.rs:432

    fn expect_expr(self) -> syn::Result<Expr> {
        match self {
            Self::Expr(expr) => Ok(expr),
            _ => panic!(),
        }
    }

    fn expect_lit(self) -> syn::Result<LitInt> {
        match self {
            Self::Int(lit) => Ok(lit),
            _ => panic!(),
        }
    }
}

impl Parse for AbiArg {
    fn parse(input: ParseStream) -> Result<Self> {
        let lookahead = input.lookahead1();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…