Struct ItemResolver

Source
struct ItemResolver<'a, 'genv, 'tcx> {
    resolver: &'a mut CrateResolver<'genv, 'tcx>,
    opaque: Option<LocalDefId>,
    errors: Errors<'genv>,
}

Fields§

§resolver: &'a mut CrateResolver<'genv, 'tcx>§opaque: Option<LocalDefId>§errors: Errors<'genv>

Implementations§

Source§

impl<'a, 'genv, 'tcx> ItemResolver<'a, 'genv, 'tcx>

Source

fn run( resolver: &'a mut CrateResolver<'genv, 'tcx>, owner_id: MaybeExternId<OwnerId>, f: impl FnOnce(&mut ItemResolver<'_, '_, '_>), ) -> Result<(), ErrorGuaranteed>

Source

fn new( resolver: &'a mut CrateResolver<'genv, 'tcx>, owner_id: MaybeExternId<OwnerId>, ) -> Result<Self, ErrorGuaranteed>

Source

fn resolve_opaque_impl(&mut self, node_id: NodeId, span: Span)

Source

fn resolve_type_path(&mut self, path: &Path)

Trait Implementations§

Source§

impl Visitor for ItemResolver<'_, '_, '_>

Source§

fn visit_async(&mut self, asyncness: &Async)

Source§

fn visit_ty(&mut self, ty: &Ty)

Source§

fn visit_path(&mut self, path: &Path)

Source§

fn visit_qualifier(&mut self, qualifier: &Qualifier)

Source§

fn visit_defn(&mut self, defn: &SpecFunc)

Source§

fn visit_refine_param(&mut self, param: &RefineParam)

Source§

fn visit_generic_param(&mut self, param: &GenericParam)

Source§

fn visit_sort(&mut self, sort: &Sort)

Source§

fn visit_trait(&mut self, trait_: &Trait)

Source§

fn visit_trait_assoc_reft(&mut self, assoc_reft: &TraitAssocReft)

Source§

fn visit_impl(&mut self, impl_: &Impl)

Source§

fn visit_impl_assoc_reft(&mut self, assoc_reft: &ImplAssocReft)

Source§

fn visit_trait_ref(&mut self, trait_ref: &TraitRef)

Source§

fn visit_base_sort(&mut self, bsort: &BaseSort)

Source§

fn visit_sort_path(&mut self, path: &SortPath)

Source§

fn visit_ty_alias(&mut self, ty_alias: &TyAlias)

Source§

fn visit_struct_def(&mut self, struct_def: &StructDef)

Source§

fn visit_constant(&mut self, _constant: &ConstantInfo)

Source§

fn visit_enum_def(&mut self, enum_def: &EnumDef)

Source§

fn visit_variant(&mut self, variant: &VariantDef)

Source§

fn visit_variant_ret(&mut self, ret: &VariantRet)

Source§

fn visit_fn_sig(&mut self, fn_sig: &FnSig)

Source§

fn visit_fn_output(&mut self, fn_output: &FnOutput)

Source§

fn visit_generics(&mut self, generics: &Generics)

Source§

fn visit_fn_input(&mut self, input: &FnInput)

Source§

fn visit_fn_ret_ty(&mut self, fn_ret_ty: &FnRetTy)

Source§

fn visit_ensures(&mut self, ensures: &Ensures)

Source§

fn visit_where_predicate(&mut self, predicate: &WhereBoundPredicate)

Source§

fn visit_generic_arg(&mut self, arg: &GenericArg)

Source§

fn visit_refine_arg(&mut self, arg: &RefineArg)

Source§

fn visit_indices(&mut self, indices: &Indices)

Source§

fn visit_const_arg(&mut self, _const_arg: &ConstArg)

Source§

fn visit_bty(&mut self, bty: &BaseTy)

Source§

fn visit_path_segment(&mut self, segment: &PathSegment)

Source§

fn visit_expr(&mut self, expr: &Expr)

Source§

fn visit_constructor_args(&mut self, expr: &ConstructorArg)

Source§

fn visit_path_expr(&mut self, qpath: &ExprPath)

Source§

fn visit_path_expr_segment(&mut self, segment: &ExprPathSegment)

Source§

fn visit_ident(&mut self, _ident: Ident)

Source§

fn visit_literal(&mut self, _lit: Lit)

Auto Trait Implementations§

§

impl<'a, 'genv, 'tcx> !Freeze for ItemResolver<'a, 'genv, 'tcx>

§

impl<'a, 'genv, 'tcx> !RefUnwindSafe for ItemResolver<'a, 'genv, 'tcx>

§

impl<'a, 'genv, 'tcx> !Send for ItemResolver<'a, 'genv, 'tcx>

§

impl<'a, 'genv, 'tcx> !Sync for ItemResolver<'a, 'genv, 'tcx>

§

impl<'a, 'genv, 'tcx> Unpin for ItemResolver<'a, 'genv, 'tcx>

§

impl<'a, 'genv, 'tcx> !UnwindSafe for ItemResolver<'a, 'genv, 'tcx>

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