pub enum ParamKind {
Explicit,
Implicit,
Instance,
}Expand description
How a function parameter is supplied during elaboration.
Variants§
Explicit
The caller provides the argument.
Implicit
Inferred by unification (a fresh metavariable is inserted).
Instance
A typeclass instance, resolved from the Context’s instance database — but only
AFTER the explicit arguments have been processed, so any metavariable in the class
type (e.g. the A in Inhabited A) is solved first.
Trait Implementations§
impl Copy for ParamKind
impl Eq for ParamKind
impl StructuralPartialEq for ParamKind
Auto Trait Implementations§
impl Freeze for ParamKind
impl RefUnwindSafe for ParamKind
impl Send for ParamKind
impl Sync for ParamKind
impl Unpin for ParamKind
impl UnsafeUnpin for ParamKind
impl UnwindSafe for ParamKind
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