pub struct Param<'a> {
pub name: &'a str,
pub type: TermId,
pub sort: ParamSort,
}
Expand description
A parameter to a function or alias.
Parameter names must be unique within a parameter list. Implicit and explicit parameters share a namespace.
Fields§
§name: &'a str
The name of the parameter.
type: TermId
The type of the parameter.
sort: ParamSort
The sort of the parameter (implicit or explicit).
Trait Implementations§
Source§impl<'a> Ord for Param<'a>
impl<'a> Ord for Param<'a>
Source§impl<'a> PartialOrd for Param<'a>
impl<'a> PartialOrd for Param<'a>
impl<'a> Copy for Param<'a>
impl<'a> Eq for Param<'a>
impl<'a> StructuralPartialEq for Param<'a>
Auto Trait Implementations§
impl<'a> Freeze for Param<'a>
impl<'a> RefUnwindSafe for Param<'a>
impl<'a> Send for Param<'a>
impl<'a> Sync for Param<'a>
impl<'a> Unpin for Param<'a>
impl<'a> UnwindSafe for Param<'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