pub struct TypeTable<T, Name = Var>(/* private fields */)
where
Name: Hash + Eq;
Implementations§
Source§impl TypeTable<Vec<MonomorphicType>>
impl TypeTable<Vec<MonomorphicType>>
pub fn push(&mut self, key: impl Into<Var>, value: impl Into<MonomorphicType>)
pub fn get<K>(&self, key: &K) -> Cow<'_, [MonomorphicType]>
pub fn single(key: impl Into<Var>, value: impl Into<MonomorphicType>) -> Self
pub fn merge_many( iter: impl IntoIterator<Item = AssumptionSet>, ) -> AssumptionSet
Source§impl TypeTable<PolymorphicType>
impl TypeTable<PolymorphicType>
pub fn substitute_mut(&mut self, substitutions: &Substitutions) -> &mut Self
pub fn push(&mut self, key: impl Into<Var>, value: impl Into<PolymorphicType>)
pub fn iter(&self) -> impl Iterator<Item = (&Var, &PolymorphicType)>
Trait Implementations§
impl<T, Name> StructuralPartialEq for TypeTable<T, Name>
Auto Trait Implementations§
impl<T, Name> Freeze for TypeTable<T, Name>
impl<T, Name> RefUnwindSafe for TypeTable<T, Name>where
Name: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, Name> Send for TypeTable<T, Name>
impl<T, Name> Sync for TypeTable<T, Name>
impl<T, Name> Unpin for TypeTable<T, Name>
impl<T, Name> UnwindSafe for TypeTable<T, Name>where
Name: UnwindSafe,
T: UnwindSafe,
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