pub struct SubstContext<'c> { /* private fields */ }
Expand description

Instantiate the polymorphic type from the quantified state.

e.g.

SubstContext::new(Array(?T, 0), ...) => SubstContext{ params: { 'T: ?T; 'N: 0 }, ... }
self.substitute(Array!('T; !'N)): Array(?T, !0)

Implementations

substituted is used to obtain real argument information. So it must be instantiated as Array(?T, 0) and so on.

ctx is used to obtain information on the names and variance of the parameters.

Trait Implementations

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.