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 strThe 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: TermIdThe 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.