pub struct FuncDecl<'a> {
pub name: &'a str,
pub params: &'a [Param<'a>],
pub constraints: &'a [TermId],
pub signature: TermId,
}
Expand description
A function declaration.
Fields§
§name: &'a str
The name of the function to be declared.
params: &'a [Param<'a>]
The static parameters of the function.
constraints: &'a [TermId]
The constraints on the static parameters.
signature: TermId
The signature of the function.
Trait Implementations§
impl<'a> Copy for FuncDecl<'a>
impl<'a> Eq for FuncDecl<'a>
impl<'a> StructuralPartialEq for FuncDecl<'a>
Auto Trait Implementations§
impl<'a> Freeze for FuncDecl<'a>
impl<'a> RefUnwindSafe for FuncDecl<'a>
impl<'a> Send for FuncDecl<'a>
impl<'a> Sync for FuncDecl<'a>
impl<'a> Unpin for FuncDecl<'a>
impl<'a> UnwindSafe for FuncDecl<'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