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
Trait Implementations§
impl Eq for Decl
impl StructuralPartialEq for Decl
Auto Trait Implementations§
impl Freeze for Decl
impl RefUnwindSafe for Decl
impl Send for Decl
impl Sync for Decl
impl Unpin for Decl
impl UnwindSafe for Decl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)