pub struct ConstructorDecl<'a> {
pub name: &'a str,
pub params: &'a [Param<'a>],
pub constraints: &'a [TermId],
pub type: TermId,
}
Expand description
A term constructor declaration.
Fields§
§name: &'a str
The name of the constructor to be declared.
params: &'a [Param<'a>]
The static parameters of the constructor.
constraints: &'a [TermId]
The constraints on the static parameters.
type: TermId
The type of the constructed term.
Trait Implementations§
Source§impl<'a> Clone for ConstructorDecl<'a>
impl<'a> Clone for ConstructorDecl<'a>
Source§fn clone(&self) -> ConstructorDecl<'a>
fn clone(&self) -> ConstructorDecl<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for ConstructorDecl<'a>
impl<'a> Debug for ConstructorDecl<'a>
Source§impl<'a> Hash for ConstructorDecl<'a>
impl<'a> Hash for ConstructorDecl<'a>
Source§impl<'a> PartialEq for ConstructorDecl<'a>
impl<'a> PartialEq for ConstructorDecl<'a>
impl<'a> Copy for ConstructorDecl<'a>
impl<'a> Eq for ConstructorDecl<'a>
impl<'a> StructuralPartialEq for ConstructorDecl<'a>
Auto Trait Implementations§
impl<'a> Freeze for ConstructorDecl<'a>
impl<'a> RefUnwindSafe for ConstructorDecl<'a>
impl<'a> Send for ConstructorDecl<'a>
impl<'a> Sync for ConstructorDecl<'a>
impl<'a> Unpin for ConstructorDecl<'a>
impl<'a> UnwindSafe for ConstructorDecl<'a>
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