struct ItemComparer<'a> {
remap: &'a HashMap<ItemId, ItemId>,
}Expand description
Compares items modulo the target-specific differences we want to ignore.
Fields§
§remap: &'a HashMap<ItemId, ItemId>Implementations§
Source§impl ItemComparer<'_>
impl ItemComparer<'_>
fn compare_items( &mut self, left: ItemRef<'_>, right: ItemRef<'_>, ) -> ControlFlow<()>
fn compare_fun_interface( &mut self, left: &FunDecl, right: &FunDecl, ) -> ControlFlow<()>
fn compare_ids<Id: Copy + Into<ItemId>>( &self, left: &Id, right: &Id, ) -> ControlFlow<()>
fn compare_iters<'a, T: AstVisitable + 'a>( &mut self, left: impl Iterator<Item = &'a T>, right: impl Iterator<Item = &'a T>, ) -> ControlFlow<()>
Trait Implementations§
Source§impl<'a, T: AstVisitable> VisitTwo<'a, T> for ItemComparer<'_>
impl<'a, T: AstVisitable> VisitTwo<'a, T> for ItemComparer<'_>
Source§impl Visitor for ItemComparer<'_>
impl Visitor for ItemComparer<'_>
Source§impl ZipAst for ItemComparer<'_>
impl ZipAst for ItemComparer<'_>
Source§fn visit_type_decl_id(
&mut self,
left: &TypeDeclId,
right: &TypeDeclId,
) -> ControlFlow<Self::Break>
fn visit_type_decl_id( &mut self, left: &TypeDeclId, right: &TypeDeclId, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn visit_fun_decl_id(
&mut self,
left: &FunDeclId,
right: &FunDeclId,
) -> ControlFlow<Self::Break>
fn visit_fun_decl_id( &mut self, left: &FunDeclId, right: &FunDeclId, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn visit_global_decl_id(
&mut self,
left: &GlobalDeclId,
right: &GlobalDeclId,
) -> ControlFlow<Self::Break>
fn visit_global_decl_id( &mut self, left: &GlobalDeclId, right: &GlobalDeclId, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn visit_trait_decl_id(
&mut self,
left: &TraitDeclId,
right: &TraitDeclId,
) -> ControlFlow<Self::Break>
fn visit_trait_decl_id( &mut self, left: &TraitDeclId, right: &TraitDeclId, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn visit_trait_impl_id(
&mut self,
left: &TraitImplId,
right: &TraitImplId,
) -> ControlFlow<Self::Break>
fn visit_trait_impl_id( &mut self, left: &TraitImplId, right: &TraitImplId, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn visit_name(&mut self, left: &Name, right: &Name) -> ControlFlow<Self::Break>
fn visit_name(&mut self, left: &Name, right: &Name) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn visit_span(
&mut self,
_left: &Span,
_right: &Span,
) -> ControlFlow<Self::Break>
fn visit_span( &mut self, _left: &Span, _right: &Span, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn visit_attr_info(
&mut self,
left: &AttrInfo,
right: &AttrInfo,
) -> ControlFlow<Self::Break>
fn visit_attr_info( &mut self, left: &AttrInfo, right: &AttrInfo, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn visit_item_meta(
&mut self,
left: &ItemMeta,
right: &ItemMeta,
) -> ControlFlow<Self::Break>
fn visit_item_meta( &mut self, left: &ItemMeta, right: &ItemMeta, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn visit_type_decl(
&mut self,
left: &TypeDecl,
right: &TypeDecl,
) -> ControlFlow<Self::Break>
fn visit_type_decl( &mut self, left: &TypeDecl, right: &TypeDecl, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn visit<'a, T: AstVisitable>(
&'a mut self,
x: &T,
y: &T,
) -> ControlFlow<Self::Break>
fn visit<'a, T: AstVisitable>( &'a mut self, x: &T, y: &T, ) -> ControlFlow<Self::Break>
Visit a visitable type. This calls the appropriate method of this trait on
x
(visit_$ty if it exists, visit_inner if not).Source§fn visit_by_val<T: AstVisitable>(
self,
x: &T,
y: &T,
) -> ControlFlow<Self::Break, Self>
fn visit_by_val<T: AstVisitable>( self, x: &T, y: &T, ) -> ControlFlow<Self::Break, Self>
Convenience alias for method chaining.
Source§fn visit_inner<T>(&mut self, x: &T, y: &T) -> ControlFlow<Self::Break>where
T: AstVisitable + for<'s> DriveTwo<'s, AstVisitableWrapper<Self>>,
fn visit_inner<T>(&mut self, x: &T, y: &T) -> ControlFlow<Self::Break>where
T: AstVisitable + for<'s> DriveTwo<'s, AstVisitableWrapper<Self>>,
Visit the contents of
x. This calls self.visit() on each field of T. This
is available for any type whose contents are all #trait_name.Source§fn enter_fun_decl_id(&mut self, x: &FunDeclId, y: &FunDeclId)
fn enter_fun_decl_id(&mut self, x: &FunDeclId, y: &FunDeclId)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_fun_decl_id(&mut self, x: &FunDeclId, y: &FunDeclId)
fn exit_fun_decl_id(&mut self, x: &FunDeclId, y: &FunDeclId)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn enter_global_decl_id(&mut self, x: &GlobalDeclId, y: &GlobalDeclId)
fn enter_global_decl_id(&mut self, x: &GlobalDeclId, y: &GlobalDeclId)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_global_decl_id(&mut self, x: &GlobalDeclId, y: &GlobalDeclId)
fn exit_global_decl_id(&mut self, x: &GlobalDeclId, y: &GlobalDeclId)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn enter_type_decl_id(&mut self, x: &TypeDeclId, y: &TypeDeclId)
fn enter_type_decl_id(&mut self, x: &TypeDeclId, y: &TypeDeclId)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_type_decl_id(&mut self, x: &TypeDeclId, y: &TypeDeclId)
fn exit_type_decl_id(&mut self, x: &TypeDeclId, y: &TypeDeclId)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn enter_trait_decl_id(&mut self, x: &TraitDeclId, y: &TraitDeclId)
fn enter_trait_decl_id(&mut self, x: &TraitDeclId, y: &TraitDeclId)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_trait_decl_id(&mut self, x: &TraitDeclId, y: &TraitDeclId)
fn exit_trait_decl_id(&mut self, x: &TraitDeclId, y: &TraitDeclId)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn enter_trait_impl_id(&mut self, x: &TraitImplId, y: &TraitImplId)
fn enter_trait_impl_id(&mut self, x: &TraitImplId, y: &TraitImplId)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_trait_impl_id(&mut self, x: &TraitImplId, y: &TraitImplId)
fn exit_trait_impl_id(&mut self, x: &TraitImplId, y: &TraitImplId)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_file_id(&mut self, x: &FileId, y: &FileId) -> ControlFlow<Self::Break>
fn visit_file_id(&mut self, x: &FileId, y: &FileId) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_file_id(&mut self, x: &FileId, y: &FileId)
fn enter_file_id(&mut self, x: &FileId, y: &FileId)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_file_id(&mut self, x: &FileId, y: &FileId)
fn exit_file_id(&mut self, x: &FileId, y: &FileId)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_type_decl_ref(
&mut self,
x: &TypeDeclRef,
y: &TypeDeclRef,
) -> ControlFlow<Self::Break>
fn visit_type_decl_ref( &mut self, x: &TypeDeclRef, y: &TypeDeclRef, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_type_decl_ref(&mut self, x: &TypeDeclRef, y: &TypeDeclRef)
fn enter_type_decl_ref(&mut self, x: &TypeDeclRef, y: &TypeDeclRef)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_type_decl_ref(&mut self, x: &TypeDeclRef, y: &TypeDeclRef)
fn exit_type_decl_ref(&mut self, x: &TypeDeclRef, y: &TypeDeclRef)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_fun_decl_ref(
&mut self,
x: &FunDeclRef,
y: &FunDeclRef,
) -> ControlFlow<Self::Break>
fn visit_fun_decl_ref( &mut self, x: &FunDeclRef, y: &FunDeclRef, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_fun_decl_ref(&mut self, x: &FunDeclRef, y: &FunDeclRef)
fn enter_fun_decl_ref(&mut self, x: &FunDeclRef, y: &FunDeclRef)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_fun_decl_ref(&mut self, x: &FunDeclRef, y: &FunDeclRef)
fn exit_fun_decl_ref(&mut self, x: &FunDeclRef, y: &FunDeclRef)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_global_decl_ref(
&mut self,
x: &GlobalDeclRef,
y: &GlobalDeclRef,
) -> ControlFlow<Self::Break>
fn visit_global_decl_ref( &mut self, x: &GlobalDeclRef, y: &GlobalDeclRef, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_global_decl_ref(&mut self, x: &GlobalDeclRef, y: &GlobalDeclRef)
fn enter_global_decl_ref(&mut self, x: &GlobalDeclRef, y: &GlobalDeclRef)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_global_decl_ref(&mut self, x: &GlobalDeclRef, y: &GlobalDeclRef)
fn exit_global_decl_ref(&mut self, x: &GlobalDeclRef, y: &GlobalDeclRef)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_trait_decl_ref(
&mut self,
x: &TraitDeclRef,
y: &TraitDeclRef,
) -> ControlFlow<Self::Break>
fn visit_trait_decl_ref( &mut self, x: &TraitDeclRef, y: &TraitDeclRef, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_trait_decl_ref(&mut self, x: &TraitDeclRef, y: &TraitDeclRef)
fn enter_trait_decl_ref(&mut self, x: &TraitDeclRef, y: &TraitDeclRef)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_trait_decl_ref(&mut self, x: &TraitDeclRef, y: &TraitDeclRef)
fn exit_trait_decl_ref(&mut self, x: &TraitDeclRef, y: &TraitDeclRef)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_trait_impl_ref(
&mut self,
x: &TraitImplRef,
y: &TraitImplRef,
) -> ControlFlow<Self::Break>
fn visit_trait_impl_ref( &mut self, x: &TraitImplRef, y: &TraitImplRef, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_trait_impl_ref(&mut self, x: &TraitImplRef, y: &TraitImplRef)
fn enter_trait_impl_ref(&mut self, x: &TraitImplRef, y: &TraitImplRef)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_trait_impl_ref(&mut self, x: &TraitImplRef, y: &TraitImplRef)
fn exit_trait_impl_ref(&mut self, x: &TraitImplRef, y: &TraitImplRef)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_impl_elem(
&mut self,
x: &ImplElem,
y: &ImplElem,
) -> ControlFlow<Self::Break>
fn visit_impl_elem( &mut self, x: &ImplElem, y: &ImplElem, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_impl_elem(&mut self, x: &ImplElem, y: &ImplElem)
fn enter_impl_elem(&mut self, x: &ImplElem, y: &ImplElem)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_impl_elem(&mut self, x: &ImplElem, y: &ImplElem)
fn exit_impl_elem(&mut self, x: &ImplElem, y: &ImplElem)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_fun_decl(
&mut self,
x: &FunDecl,
y: &FunDecl,
) -> ControlFlow<Self::Break>
fn visit_fun_decl( &mut self, x: &FunDecl, y: &FunDecl, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_fun_decl(&mut self, x: &FunDecl, y: &FunDecl)
fn enter_fun_decl(&mut self, x: &FunDecl, y: &FunDecl)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_fun_decl(&mut self, x: &FunDecl, y: &FunDecl)
fn exit_fun_decl(&mut self, x: &FunDecl, y: &FunDecl)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_global_decl(
&mut self,
x: &GlobalDecl,
y: &GlobalDecl,
) -> ControlFlow<Self::Break>
fn visit_global_decl( &mut self, x: &GlobalDecl, y: &GlobalDecl, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_global_decl(&mut self, x: &GlobalDecl, y: &GlobalDecl)
fn enter_global_decl(&mut self, x: &GlobalDecl, y: &GlobalDecl)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_global_decl(&mut self, x: &GlobalDecl, y: &GlobalDecl)
fn exit_global_decl(&mut self, x: &GlobalDecl, y: &GlobalDecl)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn enter_type_decl(&mut self, x: &TypeDecl, y: &TypeDecl)
fn enter_type_decl(&mut self, x: &TypeDecl, y: &TypeDecl)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_type_decl(&mut self, x: &TypeDecl, y: &TypeDecl)
fn exit_type_decl(&mut self, x: &TypeDecl, y: &TypeDecl)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_trait_decl(
&mut self,
x: &TraitDecl,
y: &TraitDecl,
) -> ControlFlow<Self::Break>
fn visit_trait_decl( &mut self, x: &TraitDecl, y: &TraitDecl, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_trait_decl(&mut self, x: &TraitDecl, y: &TraitDecl)
fn enter_trait_decl(&mut self, x: &TraitDecl, y: &TraitDecl)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_trait_decl(&mut self, x: &TraitDecl, y: &TraitDecl)
fn exit_trait_decl(&mut self, x: &TraitDecl, y: &TraitDecl)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_trait_impl(
&mut self,
x: &TraitImpl,
y: &TraitImpl,
) -> ControlFlow<Self::Break>
fn visit_trait_impl( &mut self, x: &TraitImpl, y: &TraitImpl, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_trait_impl(&mut self, x: &TraitImpl, y: &TraitImpl)
fn enter_trait_impl(&mut self, x: &TraitImpl, y: &TraitImpl)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_trait_impl(&mut self, x: &TraitImpl, y: &TraitImpl)
fn exit_trait_impl(&mut self, x: &TraitImpl, y: &TraitImpl)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn enter_item_meta(&mut self, x: &ItemMeta, y: &ItemMeta)
fn enter_item_meta(&mut self, x: &ItemMeta, y: &ItemMeta)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_item_meta(&mut self, x: &ItemMeta, y: &ItemMeta)
fn exit_item_meta(&mut self, x: &ItemMeta, y: &ItemMeta)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn enter_name(&mut self, x: &Name, y: &Name)
fn enter_name(&mut self, x: &Name, y: &Name)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_name(&mut self, x: &Name, y: &Name)
fn exit_name(&mut self, x: &Name, y: &Name)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn enter_span(&mut self, x: &Span, y: &Span)
fn enter_span(&mut self, x: &Span, y: &Span)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_span(&mut self, x: &Span, y: &Span)
fn exit_span(&mut self, x: &Span, y: &Span)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_attribute(
&mut self,
x: &Attribute,
y: &Attribute,
) -> ControlFlow<Self::Break>
fn visit_attribute( &mut self, x: &Attribute, y: &Attribute, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_attribute(&mut self, x: &Attribute, y: &Attribute)
fn enter_attribute(&mut self, x: &Attribute, y: &Attribute)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_attribute(&mut self, x: &Attribute, y: &Attribute)
fn exit_attribute(&mut self, x: &Attribute, y: &Attribute)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn enter_attr_info(&mut self, x: &AttrInfo, y: &AttrInfo)
fn enter_attr_info(&mut self, x: &AttrInfo, y: &AttrInfo)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_attr_info(&mut self, x: &AttrInfo, y: &AttrInfo)
fn exit_attr_info(&mut self, x: &AttrInfo, y: &AttrInfo)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_type_source(
&mut self,
x: &TypeSource,
y: &TypeSource,
) -> ControlFlow<Self::Break>
fn visit_type_source( &mut self, x: &TypeSource, y: &TypeSource, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_type_source(&mut self, x: &TypeSource, y: &TypeSource)
fn enter_type_source(&mut self, x: &TypeSource, y: &TypeSource)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_type_source(&mut self, x: &TypeSource, y: &TypeSource)
fn exit_type_source(&mut self, x: &TypeSource, y: &TypeSource)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_fun_source(
&mut self,
x: &FunSource,
y: &FunSource,
) -> ControlFlow<Self::Break>
fn visit_fun_source( &mut self, x: &FunSource, y: &FunSource, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_fun_source(&mut self, x: &FunSource, y: &FunSource)
fn enter_fun_source(&mut self, x: &FunSource, y: &FunSource)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_fun_source(&mut self, x: &FunSource, y: &FunSource)
fn exit_fun_source(&mut self, x: &FunSource, y: &FunSource)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_global_source(
&mut self,
x: &GlobalSource,
y: &GlobalSource,
) -> ControlFlow<Self::Break>
fn visit_global_source( &mut self, x: &GlobalSource, y: &GlobalSource, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_global_source(&mut self, x: &GlobalSource, y: &GlobalSource)
fn enter_global_source(&mut self, x: &GlobalSource, y: &GlobalSource)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_global_source(&mut self, x: &GlobalSource, y: &GlobalSource)
fn exit_global_source(&mut self, x: &GlobalSource, y: &GlobalSource)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_trait_decl_source(
&mut self,
x: &TraitDeclSource,
y: &TraitDeclSource,
) -> ControlFlow<Self::Break>
fn visit_trait_decl_source( &mut self, x: &TraitDeclSource, y: &TraitDeclSource, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_trait_decl_source(&mut self, x: &TraitDeclSource, y: &TraitDeclSource)
fn enter_trait_decl_source(&mut self, x: &TraitDeclSource, y: &TraitDeclSource)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_trait_decl_source(&mut self, x: &TraitDeclSource, y: &TraitDeclSource)
fn exit_trait_decl_source(&mut self, x: &TraitDeclSource, y: &TraitDeclSource)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_trait_impl_source(
&mut self,
x: &TraitImplSource,
y: &TraitImplSource,
) -> ControlFlow<Self::Break>
fn visit_trait_impl_source( &mut self, x: &TraitImplSource, y: &TraitImplSource, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_trait_impl_source(&mut self, x: &TraitImplSource, y: &TraitImplSource)
fn enter_trait_impl_source(&mut self, x: &TraitImplSource, y: &TraitImplSource)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_trait_impl_source(&mut self, x: &TraitImplSource, y: &TraitImplSource)
fn exit_trait_impl_source(&mut self, x: &TraitImplSource, y: &TraitImplSource)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_trait_assoc_ty(
&mut self,
x: &TraitAssocTy,
y: &TraitAssocTy,
) -> ControlFlow<Self::Break>
fn visit_trait_assoc_ty( &mut self, x: &TraitAssocTy, y: &TraitAssocTy, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_trait_assoc_ty(&mut self, x: &TraitAssocTy, y: &TraitAssocTy)
fn enter_trait_assoc_ty(&mut self, x: &TraitAssocTy, y: &TraitAssocTy)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_trait_assoc_ty(&mut self, x: &TraitAssocTy, y: &TraitAssocTy)
fn exit_trait_assoc_ty(&mut self, x: &TraitAssocTy, y: &TraitAssocTy)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_trait_assoc_const(
&mut self,
x: &TraitAssocConst,
y: &TraitAssocConst,
) -> ControlFlow<Self::Break>
fn visit_trait_assoc_const( &mut self, x: &TraitAssocConst, y: &TraitAssocConst, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_trait_assoc_const(&mut self, x: &TraitAssocConst, y: &TraitAssocConst)
fn enter_trait_assoc_const(&mut self, x: &TraitAssocConst, y: &TraitAssocConst)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_trait_assoc_const(&mut self, x: &TraitAssocConst, y: &TraitAssocConst)
fn exit_trait_assoc_const(&mut self, x: &TraitAssocConst, y: &TraitAssocConst)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_trait_method(
&mut self,
x: &TraitMethod,
y: &TraitMethod,
) -> ControlFlow<Self::Break>
fn visit_trait_method( &mut self, x: &TraitMethod, y: &TraitMethod, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_trait_method(&mut self, x: &TraitMethod, y: &TraitMethod)
fn enter_trait_method(&mut self, x: &TraitMethod, y: &TraitMethod)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_trait_method(&mut self, x: &TraitMethod, y: &TraitMethod)
fn exit_trait_method(&mut self, x: &TraitMethod, y: &TraitMethod)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_trait_assoc_ty_impl(
&mut self,
x: &TraitAssocTyImpl,
y: &TraitAssocTyImpl,
) -> ControlFlow<Self::Break>
fn visit_trait_assoc_ty_impl( &mut self, x: &TraitAssocTyImpl, y: &TraitAssocTyImpl, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_trait_assoc_ty_impl(
&mut self,
x: &TraitAssocTyImpl,
y: &TraitAssocTyImpl,
)
fn enter_trait_assoc_ty_impl( &mut self, x: &TraitAssocTyImpl, y: &TraitAssocTyImpl, )
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_trait_assoc_ty_impl(
&mut self,
x: &TraitAssocTyImpl,
y: &TraitAssocTyImpl,
)
fn exit_trait_assoc_ty_impl( &mut self, x: &TraitAssocTyImpl, y: &TraitAssocTyImpl, )
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_de_bruijn_id(
&mut self,
x: &DeBruijnId,
y: &DeBruijnId,
) -> ControlFlow<Self::Break>
fn visit_de_bruijn_id( &mut self, x: &DeBruijnId, y: &DeBruijnId, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_de_bruijn_id(&mut self, x: &DeBruijnId, y: &DeBruijnId)
fn enter_de_bruijn_id(&mut self, x: &DeBruijnId, y: &DeBruijnId)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_de_bruijn_id(&mut self, x: &DeBruijnId, y: &DeBruijnId)
fn exit_de_bruijn_id(&mut self, x: &DeBruijnId, y: &DeBruijnId)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_ty(&mut self, x: &Ty, y: &Ty) -> ControlFlow<Self::Break>
fn visit_ty(&mut self, x: &Ty, y: &Ty) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_ty(&mut self, x: &Ty, y: &Ty)
fn enter_ty(&mut self, x: &Ty, y: &Ty)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_ty(&mut self, x: &Ty, y: &Ty)
fn exit_ty(&mut self, x: &Ty, y: &Ty)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_ty_kind(&mut self, x: &TyKind, y: &TyKind) -> ControlFlow<Self::Break>
fn visit_ty_kind(&mut self, x: &TyKind, y: &TyKind) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_ty_kind(&mut self, x: &TyKind, y: &TyKind)
fn enter_ty_kind(&mut self, x: &TyKind, y: &TyKind)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_ty_kind(&mut self, x: &TyKind, y: &TyKind)
fn exit_ty_kind(&mut self, x: &TyKind, y: &TyKind)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_region(&mut self, x: &Region, y: &Region) -> ControlFlow<Self::Break>
fn visit_region(&mut self, x: &Region, y: &Region) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_region(&mut self, x: &Region, y: &Region)
fn enter_region(&mut self, x: &Region, y: &Region)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_region(&mut self, x: &Region, y: &Region)
fn exit_region(&mut self, x: &Region, y: &Region)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_trait_ref(
&mut self,
x: &TraitRef,
y: &TraitRef,
) -> ControlFlow<Self::Break>
fn visit_trait_ref( &mut self, x: &TraitRef, y: &TraitRef, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_trait_ref(&mut self, x: &TraitRef, y: &TraitRef)
fn enter_trait_ref(&mut self, x: &TraitRef, y: &TraitRef)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_trait_ref(&mut self, x: &TraitRef, y: &TraitRef)
fn exit_trait_ref(&mut self, x: &TraitRef, y: &TraitRef)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_trait_ref_contents(
&mut self,
x: &TraitRefContents,
y: &TraitRefContents,
) -> ControlFlow<Self::Break>
fn visit_trait_ref_contents( &mut self, x: &TraitRefContents, y: &TraitRefContents, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_trait_ref_contents(
&mut self,
x: &TraitRefContents,
y: &TraitRefContents,
)
fn enter_trait_ref_contents( &mut self, x: &TraitRefContents, y: &TraitRefContents, )
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_trait_ref_contents(
&mut self,
x: &TraitRefContents,
y: &TraitRefContents,
)
fn exit_trait_ref_contents( &mut self, x: &TraitRefContents, y: &TraitRefContents, )
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_trait_ref_kind(
&mut self,
x: &TraitRefKind,
y: &TraitRefKind,
) -> ControlFlow<Self::Break>
fn visit_trait_ref_kind( &mut self, x: &TraitRefKind, y: &TraitRefKind, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_trait_ref_kind(&mut self, x: &TraitRefKind, y: &TraitRefKind)
fn enter_trait_ref_kind(&mut self, x: &TraitRefKind, y: &TraitRefKind)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_trait_ref_kind(&mut self, x: &TraitRefKind, y: &TraitRefKind)
fn exit_trait_ref_kind(&mut self, x: &TraitRefKind, y: &TraitRefKind)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_generic_args(
&mut self,
x: &GenericArgs,
y: &GenericArgs,
) -> ControlFlow<Self::Break>
fn visit_generic_args( &mut self, x: &GenericArgs, y: &GenericArgs, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_generic_args(&mut self, x: &GenericArgs, y: &GenericArgs)
fn enter_generic_args(&mut self, x: &GenericArgs, y: &GenericArgs)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_generic_args(&mut self, x: &GenericArgs, y: &GenericArgs)
fn exit_generic_args(&mut self, x: &GenericArgs, y: &GenericArgs)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_generic_params(
&mut self,
x: &GenericParams,
y: &GenericParams,
) -> ControlFlow<Self::Break>
fn visit_generic_params( &mut self, x: &GenericParams, y: &GenericParams, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_generic_params(&mut self, x: &GenericParams, y: &GenericParams)
fn enter_generic_params(&mut self, x: &GenericParams, y: &GenericParams)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_generic_params(&mut self, x: &GenericParams, y: &GenericParams)
fn exit_generic_params(&mut self, x: &GenericParams, y: &GenericParams)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_trait_param(
&mut self,
x: &TraitParam,
y: &TraitParam,
) -> ControlFlow<Self::Break>
fn visit_trait_param( &mut self, x: &TraitParam, y: &TraitParam, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_trait_param(&mut self, x: &TraitParam, y: &TraitParam)
fn enter_trait_param(&mut self, x: &TraitParam, y: &TraitParam)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_trait_param(&mut self, x: &TraitParam, y: &TraitParam)
fn exit_trait_param(&mut self, x: &TraitParam, y: &TraitParam)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_trait_clause_id(
&mut self,
x: &TraitClauseId,
y: &TraitClauseId,
) -> ControlFlow<Self::Break>
fn visit_trait_clause_id( &mut self, x: &TraitClauseId, y: &TraitClauseId, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_trait_clause_id(&mut self, x: &TraitClauseId, y: &TraitClauseId)
fn enter_trait_clause_id(&mut self, x: &TraitClauseId, y: &TraitClauseId)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_trait_clause_id(&mut self, x: &TraitClauseId, y: &TraitClauseId)
fn exit_trait_clause_id(&mut self, x: &TraitClauseId, y: &TraitClauseId)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_trait_type_constraint(
&mut self,
x: &TraitTypeConstraint,
y: &TraitTypeConstraint,
) -> ControlFlow<Self::Break>
fn visit_trait_type_constraint( &mut self, x: &TraitTypeConstraint, y: &TraitTypeConstraint, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_trait_type_constraint(
&mut self,
x: &TraitTypeConstraint,
y: &TraitTypeConstraint,
)
fn enter_trait_type_constraint( &mut self, x: &TraitTypeConstraint, y: &TraitTypeConstraint, )
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_trait_type_constraint(
&mut self,
x: &TraitTypeConstraint,
y: &TraitTypeConstraint,
)
fn exit_trait_type_constraint( &mut self, x: &TraitTypeConstraint, y: &TraitTypeConstraint, )
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_de_bruijn_var<T: AstVisitable + Idx>(
&mut self,
x: &DeBruijnVar<T>,
y: &DeBruijnVar<T>,
) -> ControlFlow<Self::Break>
fn visit_de_bruijn_var<T: AstVisitable + Idx>( &mut self, x: &DeBruijnVar<T>, y: &DeBruijnVar<T>, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_de_bruijn_var<T: AstVisitable + Idx>(
&mut self,
x: &DeBruijnVar<T>,
y: &DeBruijnVar<T>,
)
fn enter_de_bruijn_var<T: AstVisitable + Idx>( &mut self, x: &DeBruijnVar<T>, y: &DeBruijnVar<T>, )
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_de_bruijn_var<T: AstVisitable + Idx>(
&mut self,
x: &DeBruijnVar<T>,
y: &DeBruijnVar<T>,
)
fn exit_de_bruijn_var<T: AstVisitable + Idx>( &mut self, x: &DeBruijnVar<T>, y: &DeBruijnVar<T>, )
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_region_binder<T: AstVisitable>(
&mut self,
x: &RegionBinder<T>,
y: &RegionBinder<T>,
) -> ControlFlow<Self::Break>
fn visit_region_binder<T: AstVisitable>( &mut self, x: &RegionBinder<T>, y: &RegionBinder<T>, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_region_binder<T: AstVisitable>(
&mut self,
x: &RegionBinder<T>,
y: &RegionBinder<T>,
)
fn enter_region_binder<T: AstVisitable>( &mut self, x: &RegionBinder<T>, y: &RegionBinder<T>, )
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_region_binder<T: AstVisitable>(
&mut self,
x: &RegionBinder<T>,
y: &RegionBinder<T>,
)
fn exit_region_binder<T: AstVisitable>( &mut self, x: &RegionBinder<T>, y: &RegionBinder<T>, )
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_binder<T: AstVisitable>(
&mut self,
x: &Binder<T>,
y: &Binder<T>,
) -> ControlFlow<Self::Break>
fn visit_binder<T: AstVisitable>( &mut self, x: &Binder<T>, y: &Binder<T>, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_binder<T: AstVisitable>(&mut self, x: &Binder<T>, y: &Binder<T>)
fn enter_binder<T: AstVisitable>(&mut self, x: &Binder<T>, y: &Binder<T>)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_binder<T: AstVisitable>(&mut self, x: &Binder<T>, y: &Binder<T>)
fn exit_binder<T: AstVisitable>(&mut self, x: &Binder<T>, y: &Binder<T>)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_llbc_block(&mut self, x: &Block, y: &Block) -> ControlFlow<Self::Break>
fn visit_llbc_block(&mut self, x: &Block, y: &Block) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_llbc_block(&mut self, x: &Block, y: &Block)
fn enter_llbc_block(&mut self, x: &Block, y: &Block)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_llbc_block(&mut self, x: &Block, y: &Block)
fn exit_llbc_block(&mut self, x: &Block, y: &Block)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_llbc_statement(
&mut self,
x: &Statement,
y: &Statement,
) -> ControlFlow<Self::Break>
fn visit_llbc_statement( &mut self, x: &Statement, y: &Statement, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_llbc_statement(&mut self, x: &Statement, y: &Statement)
fn enter_llbc_statement(&mut self, x: &Statement, y: &Statement)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_llbc_statement(&mut self, x: &Statement, y: &Statement)
fn exit_llbc_statement(&mut self, x: &Statement, y: &Statement)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_ullbc_statement(
&mut self,
x: &Statement,
y: &Statement,
) -> ControlFlow<Self::Break>
fn visit_ullbc_statement( &mut self, x: &Statement, y: &Statement, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_ullbc_statement(&mut self, x: &Statement, y: &Statement)
fn enter_ullbc_statement(&mut self, x: &Statement, y: &Statement)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_ullbc_statement(&mut self, x: &Statement, y: &Statement)
fn exit_ullbc_statement(&mut self, x: &Statement, y: &Statement)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_ullbc_terminator(
&mut self,
x: &Terminator,
y: &Terminator,
) -> ControlFlow<Self::Break>
fn visit_ullbc_terminator( &mut self, x: &Terminator, y: &Terminator, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_ullbc_terminator(&mut self, x: &Terminator, y: &Terminator)
fn enter_ullbc_terminator(&mut self, x: &Terminator, y: &Terminator)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_ullbc_terminator(&mut self, x: &Terminator, y: &Terminator)
fn exit_ullbc_terminator(&mut self, x: &Terminator, y: &Terminator)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_abort_kind(
&mut self,
x: &AbortKind,
y: &AbortKind,
) -> ControlFlow<Self::Break>
fn visit_abort_kind( &mut self, x: &AbortKind, y: &AbortKind, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_abort_kind(&mut self, x: &AbortKind, y: &AbortKind)
fn enter_abort_kind(&mut self, x: &AbortKind, y: &AbortKind)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_abort_kind(&mut self, x: &AbortKind, y: &AbortKind)
fn exit_abort_kind(&mut self, x: &AbortKind, y: &AbortKind)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_aggregate_kind(
&mut self,
x: &AggregateKind,
y: &AggregateKind,
) -> ControlFlow<Self::Break>
fn visit_aggregate_kind( &mut self, x: &AggregateKind, y: &AggregateKind, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_aggregate_kind(&mut self, x: &AggregateKind, y: &AggregateKind)
fn enter_aggregate_kind(&mut self, x: &AggregateKind, y: &AggregateKind)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_aggregate_kind(&mut self, x: &AggregateKind, y: &AggregateKind)
fn exit_aggregate_kind(&mut self, x: &AggregateKind, y: &AggregateKind)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_fn_ptr(&mut self, x: &FnPtr, y: &FnPtr) -> ControlFlow<Self::Break>
fn visit_fn_ptr(&mut self, x: &FnPtr, y: &FnPtr) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_fn_ptr(&mut self, x: &FnPtr, y: &FnPtr)
fn enter_fn_ptr(&mut self, x: &FnPtr, y: &FnPtr)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_fn_ptr(&mut self, x: &FnPtr, y: &FnPtr)
fn exit_fn_ptr(&mut self, x: &FnPtr, y: &FnPtr)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_fun_sig(&mut self, x: &FunSig, y: &FunSig) -> ControlFlow<Self::Break>
fn visit_fun_sig(&mut self, x: &FunSig, y: &FunSig) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_fun_sig(&mut self, x: &FunSig, y: &FunSig)
fn enter_fun_sig(&mut self, x: &FunSig, y: &FunSig)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_fun_sig(&mut self, x: &FunSig, y: &FunSig)
fn exit_fun_sig(&mut self, x: &FunSig, y: &FunSig)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_constant_expr(
&mut self,
x: &ConstantExpr,
y: &ConstantExpr,
) -> ControlFlow<Self::Break>
fn visit_constant_expr( &mut self, x: &ConstantExpr, y: &ConstantExpr, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_constant_expr(&mut self, x: &ConstantExpr, y: &ConstantExpr)
fn enter_constant_expr(&mut self, x: &ConstantExpr, y: &ConstantExpr)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_constant_expr(&mut self, x: &ConstantExpr, y: &ConstantExpr)
fn exit_constant_expr(&mut self, x: &ConstantExpr, y: &ConstantExpr)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_constant_expr_kind(
&mut self,
x: &ConstantExprKind,
y: &ConstantExprKind,
) -> ControlFlow<Self::Break>
fn visit_constant_expr_kind( &mut self, x: &ConstantExprKind, y: &ConstantExprKind, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_constant_expr_kind(
&mut self,
x: &ConstantExprKind,
y: &ConstantExprKind,
)
fn enter_constant_expr_kind( &mut self, x: &ConstantExprKind, y: &ConstantExprKind, )
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_constant_expr_kind(
&mut self,
x: &ConstantExprKind,
y: &ConstantExprKind,
)
fn exit_constant_expr_kind( &mut self, x: &ConstantExprKind, y: &ConstantExprKind, )
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_inhabited_predicate(
&mut self,
x: &InhabitedPredicate,
y: &InhabitedPredicate,
) -> ControlFlow<Self::Break>
fn visit_inhabited_predicate( &mut self, x: &InhabitedPredicate, y: &InhabitedPredicate, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_inhabited_predicate(
&mut self,
x: &InhabitedPredicate,
y: &InhabitedPredicate,
)
fn enter_inhabited_predicate( &mut self, x: &InhabitedPredicate, y: &InhabitedPredicate, )
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_inhabited_predicate(
&mut self,
x: &InhabitedPredicate,
y: &InhabitedPredicate,
)
fn exit_inhabited_predicate( &mut self, x: &InhabitedPredicate, y: &InhabitedPredicate, )
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_inhabited_predicate_kind(
&mut self,
x: &InhabitedPredicateKind,
y: &InhabitedPredicateKind,
) -> ControlFlow<Self::Break>
fn visit_inhabited_predicate_kind( &mut self, x: &InhabitedPredicateKind, y: &InhabitedPredicateKind, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_inhabited_predicate_kind(
&mut self,
x: &InhabitedPredicateKind,
y: &InhabitedPredicateKind,
)
fn enter_inhabited_predicate_kind( &mut self, x: &InhabitedPredicateKind, y: &InhabitedPredicateKind, )
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_inhabited_predicate_kind(
&mut self,
x: &InhabitedPredicateKind,
y: &InhabitedPredicateKind,
)
fn exit_inhabited_predicate_kind( &mut self, x: &InhabitedPredicateKind, y: &InhabitedPredicateKind, )
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_size_expr(
&mut self,
x: &SizeExpr,
y: &SizeExpr,
) -> ControlFlow<Self::Break>
fn visit_size_expr( &mut self, x: &SizeExpr, y: &SizeExpr, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_size_expr(&mut self, x: &SizeExpr, y: &SizeExpr)
fn enter_size_expr(&mut self, x: &SizeExpr, y: &SizeExpr)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_size_expr(&mut self, x: &SizeExpr, y: &SizeExpr)
fn exit_size_expr(&mut self, x: &SizeExpr, y: &SizeExpr)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_size_expr_kind(
&mut self,
x: &SizeExprKind,
y: &SizeExprKind,
) -> ControlFlow<Self::Break>
fn visit_size_expr_kind( &mut self, x: &SizeExprKind, y: &SizeExprKind, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_size_expr_kind(&mut self, x: &SizeExprKind, y: &SizeExprKind)
fn enter_size_expr_kind(&mut self, x: &SizeExprKind, y: &SizeExprKind)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_size_expr_kind(&mut self, x: &SizeExprKind, y: &SizeExprKind)
fn exit_size_expr_kind(&mut self, x: &SizeExprKind, y: &SizeExprKind)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_metadata_value(
&mut self,
x: &MetadataValue,
y: &MetadataValue,
) -> ControlFlow<Self::Break>
fn visit_metadata_value( &mut self, x: &MetadataValue, y: &MetadataValue, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_metadata_value(&mut self, x: &MetadataValue, y: &MetadataValue)
fn enter_metadata_value(&mut self, x: &MetadataValue, y: &MetadataValue)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_metadata_value(&mut self, x: &MetadataValue, y: &MetadataValue)
fn exit_metadata_value(&mut self, x: &MetadataValue, y: &MetadataValue)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_place(&mut self, x: &Place, y: &Place) -> ControlFlow<Self::Break>
fn visit_place(&mut self, x: &Place, y: &Place) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_place(&mut self, x: &Place, y: &Place)
fn enter_place(&mut self, x: &Place, y: &Place)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_place(&mut self, x: &Place, y: &Place)
fn exit_place(&mut self, x: &Place, y: &Place)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_projection_elem(
&mut self,
x: &ProjectionElem,
y: &ProjectionElem,
) -> ControlFlow<Self::Break>
fn visit_projection_elem( &mut self, x: &ProjectionElem, y: &ProjectionElem, ) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_projection_elem(&mut self, x: &ProjectionElem, y: &ProjectionElem)
fn enter_projection_elem(&mut self, x: &ProjectionElem, y: &ProjectionElem)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_projection_elem(&mut self, x: &ProjectionElem, y: &ProjectionElem)
fn exit_projection_elem(&mut self, x: &ProjectionElem, y: &ProjectionElem)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_rvalue(&mut self, x: &Rvalue, y: &Rvalue) -> ControlFlow<Self::Break>
fn visit_rvalue(&mut self, x: &Rvalue, y: &Rvalue) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_rvalue(&mut self, x: &Rvalue, y: &Rvalue)
fn enter_rvalue(&mut self, x: &Rvalue, y: &Rvalue)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Source§fn exit_rvalue(&mut self, x: &Rvalue, y: &Rvalue)
fn exit_rvalue(&mut self, x: &Rvalue, y: &Rvalue)
Called when finished visiting a
$ty (unless visit_$ty is overriden).Source§fn visit_body(&mut self, x: &Body, y: &Body) -> ControlFlow<Self::Break>
fn visit_body(&mut self, x: &Body, y: &Body) -> ControlFlow<Self::Break>
Overrideable method called when visiting a
$ty. When overriding this method,
call self.visit_inner(x) to keep recursively visiting the type, or don’t call
it if the contents of x should not be visited. Read moreSource§fn enter_body(&mut self, x: &Body, y: &Body)
fn enter_body(&mut self, x: &Body, y: &Body)
Called when starting to visit a
$ty (unless visit_$ty is overriden).Auto Trait Implementations§
impl<'a> Freeze for ItemComparer<'a>
impl<'a> RefUnwindSafe for ItemComparer<'a>
impl<'a> Send for ItemComparer<'a>
impl<'a> Sync for ItemComparer<'a>
impl<'a> Unpin for ItemComparer<'a>
impl<'a> UnsafeUnpin for ItemComparer<'a>
impl<'a> UnwindSafe for ItemComparer<'a>
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> ⓘ
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