struct RegionSubst {
map: UnordMap<RegionVid, Region>,
}
Fields§
§map: UnordMap<RegionVid, Region>
Implementations§
Source§impl RegionSubst
impl RegionSubst
fn apply<T: TypeFoldable>(&self, t: &T) -> T
fn infer_from_region(&mut self, a: Region, b: Region)
Source§impl RegionSubst
impl RegionSubst
fn ty_infer_from_fn_sig(&mut self, a: &FnSig, b: &FnSig)
fn ty_infer_from_ty(&mut self, a: &Ty, b: &Ty)
fn ty_infer_from_bty(&mut self, a: &BaseTy, ty: &Ty)
fn ty_infer_from_existential_pred( &mut self, a: &PolyExistentialPredicate, b: &PolyExistentialPredicate, )
fn ty_infer_from_generic_args(&mut self, a: &GenericArgs, b: &GenericArgs)
fn ty_infer_from_generic_arg(&mut self, a: &GenericArg, b: &GenericArg)
Source§impl RegionSubst
impl RegionSubst
fn rty_infer_from_fn_sig(&mut self, a: &FnSig, b: &FnSig)
fn rty_infer_from_ty(&mut self, a: &Ty, b: &Ty)
fn rty_infer_from_bty(&mut self, a: &BaseTy, b: &BaseTy)
fn rty_infer_from_generic_arg(&mut self, a: &GenericArg, b: &GenericArg)
fn rty_infer_from_existential_pred( &mut self, a: &Binder<ExistentialPredicate>, b: &Binder<ExistentialPredicate>, )
Trait Implementations§
Source§impl Debug for RegionSubst
impl Debug for RegionSubst
Source§impl Default for RegionSubst
impl Default for RegionSubst
Source§fn default() -> RegionSubst
fn default() -> RegionSubst
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RegionSubst
impl RefUnwindSafe for RegionSubst
impl Send for RegionSubst
impl Sync for RegionSubst
impl Unpin for RegionSubst
impl UnwindSafe for RegionSubst
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> 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