Struct cranelift_isle::ast::Decl
source · pub struct Decl {
pub term: Ident,
pub arg_tys: Vec<Ident>,
pub ret_ty: Ident,
pub pure: bool,
pub multi: bool,
pub partial: bool,
pub pos: Pos,
}
Expand description
A declaration of a term with its argument and return types.
Fields§
§term: Ident
§arg_tys: Vec<Ident>
§ret_ty: Ident
§pure: bool
Whether this term’s constructor is pure.
multi: bool
Whether this term can exist with some multiplicity: an extractor or a constructor that matches multiple times, or produces multiple values.
partial: bool
Whether this term’s constructor can fail to match.
pos: Pos