Skip to main content

ScopedVisitorWrapper

Struct ScopedVisitorWrapper 

Source
pub(crate) struct ScopedVisitorWrapper<V>(V);

Tuple Fields§

§0: V

Implementations§

Source§

impl<'genv, 'tcx: 'genv, V: ScopedVisitor<'genv, 'tcx>> ScopedVisitorWrapper<V>

Source

fn with_scope(&mut self, scope: Scope<'_>, f: impl FnOnce(&mut Self))

Source

fn is_box(&self, segment: &PathSegment) -> bool

Source

fn visit_let_decls<'v>(&mut self, decls: &'v [LetDecl], body: &'v Expr)

Each let declaration opens a scope that covers the following declarations and the body, but not its own initializer.

Trait Implementations§

Source§

impl<V> Deref for ScopedVisitorWrapper<V>

Source§

type Target = V

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<V> DerefMut for ScopedVisitorWrapper<V>

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl<'v, 'genv, 'tcx: 'genv, V: ScopedVisitor<'genv, 'tcx>> Visitor<'v> for ScopedVisitorWrapper<V>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn visit_primop_prop(&mut self, prop: &'v PrimOpProp)

Source§

fn visit_axiom(&mut self, axiom: &'v Axiom)

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn visit_requires(&mut self, requires: &'v Requires)

Source§

fn visit_fn_output(&mut self, output: &'v FnOutput)

Source§

fn visit_fn_input(&mut self, arg: &'v FnInput)

Source§

fn visit_ensures(&mut self, constraint: &'v Ensures)

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn visit_path_expr(&mut self, path: &'v ExprPath)

Source§

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

Source§

fn visit_flux_item(&mut self, item: &'v FluxItem)

Source§

fn visit_sort_decl(&mut self, sort_decl: &'v SortDecl)

Source§

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

Source§

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

Source§

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

Source§

fn visit_item(&mut self, item: &'v Item)

Source§

fn visit_trait_item(&mut self, item: &'v TraitItemFn)

Source§

fn visit_impl_item(&mut self, item: &'v ImplItemFn)

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn visit_async(&mut self, _asyncness: &'v Async)

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn visit_const_arg(&mut self, const_arg: &'v ConstArg)

Source§

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

Source§

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

Source§

fn visit_ident(&mut self, _ident: Ident)

Source§

fn visit_literal(&mut self, _lit: Lit)

Auto Trait Implementations§

§

impl<V> DynSend for ScopedVisitorWrapper<V>
where V: DynSend,

§

impl<V> DynSync for ScopedVisitorWrapper<V>
where V: DynSync,

§

impl<V> Freeze for ScopedVisitorWrapper<V>
where V: Freeze,

§

impl<V> RefUnwindSafe for ScopedVisitorWrapper<V>
where V: RefUnwindSafe,

§

impl<V> Send for ScopedVisitorWrapper<V>
where V: Send,

§

impl<V> Sync for ScopedVisitorWrapper<V>
where V: Sync,

§

impl<V> Unpin for ScopedVisitorWrapper<V>
where V: Unpin,

§

impl<V> UnsafeUnpin for ScopedVisitorWrapper<V>
where V: UnsafeUnpin,

§

impl<V> UnwindSafe for ScopedVisitorWrapper<V>
where V: UnwindSafe,

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more