Type Alias chalk_solve::infer::ParameterEnaVariable
source · pub type ParameterEnaVariable<I: Interner> = WithKind<I, EnaVariable<I>>;
Aliased Type§
struct ParameterEnaVariable<I: Interner> {
pub kind: VariableKind<I>,
/* private fields */
}
Fields§
§kind: VariableKind<I>
The associated variable kind.
Implementations
source§impl<I, T> WithKind<I, T>where
I: Interner,
impl<I, T> WithKind<I, T>where
I: Interner,
sourcepub fn new(kind: VariableKind<I>, value: T) -> WithKind<I, T>
pub fn new(kind: VariableKind<I>, value: T) -> WithKind<I, T>
Creates a WithKind
from a variable kind and a value.
sourcepub fn map<U, OP>(self, op: OP) -> WithKind<I, U>where
OP: FnOnce(T) -> U,
pub fn map<U, OP>(self, op: OP) -> WithKind<I, U>where
OP: FnOnce(T) -> U,
Maps the value in WithKind
.