Trait chalk_ir::Substitute
source · pub trait Substitute<I: Interner>: AsParameters<I> {
// Required method
fn apply<T: TypeFoldable<I>>(&self, value: T, interner: I) -> T;
}
Expand description
An extension trait to anything that can be represented as list of GenericArg
s that signifies
that it can applied as a substituion to a value
Required Methods§
sourcefn apply<T: TypeFoldable<I>>(&self, value: T, interner: I) -> T
fn apply<T: TypeFoldable<I>>(&self, value: T, interner: I) -> T
Apply the substitution to a value.
Object Safety§
This trait is not object safe.