pub struct Substitutions(/* private fields */);Implementations§
Source§impl Substitutions
impl Substitutions
pub fn compose(&self, other: &Substitutions) -> Self
pub fn merge(&mut self, other: Substitutions)
pub fn empty() -> Substitutions
pub fn single(from: TVar, to: MonomorphicType) -> Substitutions
pub fn get(&self, key: &TVar) -> Option<&MonomorphicType>
pub fn remove(&mut self, key: &TVar)
Trait Implementations§
Source§impl Add<&Substitutions> for Substitutions
impl Add<&Substitutions> for Substitutions
Source§type Output = Substitutions
type Output = Substitutions
The resulting type after applying the
+ operator.Source§impl Add<Substitutions> for &Substitutions
impl Add<Substitutions> for &Substitutions
Source§type Output = Substitutions
type Output = Substitutions
The resulting type after applying the
+ operator.Source§impl Add for &Substitutions
impl Add for &Substitutions
Source§impl Add for Substitutions
impl Add for Substitutions
Source§impl BitAnd<&Substitutions> for &MonomorphicType
impl BitAnd<&Substitutions> for &MonomorphicType
Source§type Output = MonomorphicType
type Output = MonomorphicType
The resulting type after applying the
& operator.Source§impl BitAnd<&Substitutions> for &PolymorphicType
impl BitAnd<&Substitutions> for &PolymorphicType
Source§type Output = PolymorphicType
type Output = PolymorphicType
The resulting type after applying the
& operator.Source§impl BitAnd<&Substitutions> for MonomorphicType
impl BitAnd<&Substitutions> for MonomorphicType
Source§type Output = MonomorphicType
type Output = MonomorphicType
The resulting type after applying the
& operator.Source§impl BitAnd<&Substitutions> for PolymorphicType
impl BitAnd<&Substitutions> for PolymorphicType
Source§type Output = PolymorphicType
type Output = PolymorphicType
The resulting type after applying the
& operator.Source§impl BitAnd<Substitutions> for &MonomorphicType
impl BitAnd<Substitutions> for &MonomorphicType
Source§type Output = MonomorphicType
type Output = MonomorphicType
The resulting type after applying the
& operator.Source§impl BitAnd<Substitutions> for &PolymorphicType
impl BitAnd<Substitutions> for &PolymorphicType
Source§type Output = PolymorphicType
type Output = PolymorphicType
The resulting type after applying the
& operator.Source§impl BitAnd<Substitutions> for MonomorphicType
impl BitAnd<Substitutions> for MonomorphicType
Source§type Output = MonomorphicType
type Output = MonomorphicType
The resulting type after applying the
& operator.Source§impl BitAnd<Substitutions> for PolymorphicType
impl BitAnd<Substitutions> for PolymorphicType
Source§type Output = PolymorphicType
type Output = PolymorphicType
The resulting type after applying the
& operator.Source§impl Clone for Substitutions
impl Clone for Substitutions
Source§fn clone(&self) -> Substitutions
fn clone(&self) -> Substitutions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Substitutions
impl Debug for Substitutions
Source§impl Display for Substitutions
impl Display for Substitutions
Source§impl<M: Into<MonomorphicType>> FromIterator<(TVar, M)> for Substitutions
impl<M: Into<MonomorphicType>> FromIterator<(TVar, M)> for Substitutions
Source§impl PartialEq for Substitutions
impl PartialEq for Substitutions
impl StructuralPartialEq for Substitutions
Auto Trait Implementations§
impl Freeze for Substitutions
impl RefUnwindSafe for Substitutions
impl Send for Substitutions
impl Sync for Substitutions
impl Unpin for Substitutions
impl UnwindSafe for Substitutions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more