flux_middle::rty::projections

Struct TVarSubst

Source
struct TVarSubst {
    args: Vec<Option<GenericArg>>,
}

Fields§

§args: Vec<Option<GenericArg>>

Implementations§

Source§

impl TVarSubst

Source

fn new(generics: &Generics) -> Self

Source

fn instantiate_partial<T: TypeFoldable>( &mut self, pred: EarlyBinder<T>, ) -> Option<T>

Source

fn finish<'tcx>( self, tcx: TyCtxt<'tcx>, generics: &'tcx Generics, ) -> Vec<GenericArg>

Source

fn generic_args(&mut self, a: &GenericArg, b: &GenericArg)

Source

fn tys(&mut self, a: &Ty, b: &Ty)

Source

fn subset_tys(&mut self, a: &SubsetTyCtor, b: &SubsetTyCtor)

Source

fn btys(&mut self, a: &BaseTy, b: &BaseTy)

Source

fn regions(&mut self, a: Region, b: Region)

Source

fn consts(&mut self, a: &Const, b: &Const)

Source

fn insert_generic_arg(&mut self, idx: u32, arg: GenericArg)

Trait Implementations§

Source§

impl Debug for TVarSubst

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

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

impl GenericsSubstDelegate for &TVarSubst

Source§

type Error = ()

Source§

fn ty_for_param(&mut self, param_ty: ParamTy) -> Result<Ty, Self::Error>

Source§

fn sort_for_param(&mut self, param_ty: ParamTy) -> Result<Sort, Self::Error>

Source§

fn ctor_for_param( &mut self, param_ty: ParamTy, ) -> Result<SubsetTyCtor, Self::Error>

Source§

fn region_for_param(&mut self, _ebr: EarlyParamRegion) -> Region

Source§

fn expr_for_param_const(&self, _param_const: ParamConst) -> Expr

Source§

fn const_for_param(&mut self, _param: &Const) -> Const

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<P> IntoQueryParam<P> for P

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.