struct TVarSubst {
    args: Vec<Option<GenericArg>>,
}Fields§
§args: Vec<Option<GenericArg>>Implementations§
Source§impl TVarSubst
 
impl TVarSubst
fn new(generics: &Generics) -> Self
fn instantiate_partial<T: TypeFoldable>( &mut self, pred: EarlyBinder<T>, ) -> Option<T>
fn finish<'tcx>( self, tcx: TyCtxt<'tcx>, generics: &'tcx Generics, ) -> QueryResult<Vec<GenericArg>>
fn generic_args(&mut self, a: &GenericArg, b: &GenericArg)
fn tys(&mut self, a: &Ty, b: &Ty)
fn subset_tys(&mut self, a: &SubsetTyCtor, b: &SubsetTyCtor)
fn btys(&mut self, a: &BaseTy, b: &BaseTy)
fn regions(&mut self, a: Region, b: Region)
fn consts(&mut self, a: &Const, b: &Const)
fn insert_generic_arg(&mut self, idx: u32, arg: GenericArg)
Trait Implementations§
Source§impl GenericsSubstDelegate for &TVarSubst
 
impl GenericsSubstDelegate for &TVarSubst
type Error = ()
fn ty_for_param(&mut self, param_ty: ParamTy) -> Result<Ty, Self::Error>
fn sort_for_param(&mut self, param_ty: ParamTy) -> Result<Sort, Self::Error>
fn ctor_for_param( &mut self, param_ty: ParamTy, ) -> Result<SubsetTyCtor, Self::Error>
fn region_for_param(&mut self, _ebr: EarlyParamRegion) -> Region
fn expr_for_param_const(&self, _param_const: ParamConst) -> Expr
fn const_for_param(&mut self, _param: &Const) -> Const
Auto Trait Implementations§
impl Freeze for TVarSubst
impl RefUnwindSafe for TVarSubst
impl Send for TVarSubst
impl Sync for TVarSubst
impl Unpin for TVarSubst
impl UnwindSafe for TVarSubst
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
§impl<T> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
§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