rapx::analysis::core::api_dep::extract

Struct FreeVarFolder

source
struct FreeVarFolder<'tcx, 'a> {
    cx: TyCtxt<'tcx>,
    free_var_cnt: usize,
    infcx: &'a InferCtxt<'tcx>,
    span: Span,
}

Fields§

§cx: TyCtxt<'tcx>§free_var_cnt: usize§infcx: &'a InferCtxt<'tcx>§span: Span

Implementations§

source§

impl<'tcx, 'a> FreeVarFolder<'tcx, 'a>

source

pub fn new( cx: TyCtxt<'tcx>, infcx: &'a InferCtxt<'tcx>, span: Span, ) -> FreeVarFolder<'tcx, 'a>

Trait Implementations§

source§

impl<'tcx> TypeFolder<TyCtxt<'tcx>> for FreeVarFolder<'tcx, '_>

source§

fn cx(&self) -> TyCtxt<'tcx>

source§

fn fold_region(&mut self, _: Region<'tcx>) -> Region<'tcx>

§

fn fold_binder<T>(&mut self, t: Binder<I, T>) -> Binder<I, T>
where T: TypeFoldable<I>,

§

fn fold_ty(&mut self, t: <I as Interner>::Ty) -> <I as Interner>::Ty

§

fn fold_const(&mut self, c: <I as Interner>::Const) -> <I as Interner>::Const

§

fn fold_predicate( &mut self, p: <I as Interner>::Predicate, ) -> <I as Interner>::Predicate

Auto Trait Implementations§

§

impl<'tcx, 'a> Freeze for FreeVarFolder<'tcx, 'a>

§

impl<'tcx, 'a> !RefUnwindSafe for FreeVarFolder<'tcx, 'a>

§

impl<'tcx, 'a> !Send for FreeVarFolder<'tcx, 'a>

§

impl<'tcx, 'a> !Sync for FreeVarFolder<'tcx, 'a>

§

impl<'tcx, 'a> Unpin for FreeVarFolder<'tcx, 'a>

§

impl<'tcx, 'a> !UnwindSafe for FreeVarFolder<'tcx, 'a>

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, 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.