pub struct BaseVisitorCtx<'hir> { /* private fields */ }Implementations§
Source§impl<'hir> BaseVisitorCtx<'hir>
impl<'hir> BaseVisitorCtx<'hir>
pub fn current_function(&self) -> Option<&'hir Item<'hir>>
Trait Implementations§
Source§impl<'hir> VisitorCtx<'hir> for BaseVisitorCtx<'hir>
impl<'hir> VisitorCtx<'hir> for BaseVisitorCtx<'hir>
fn enter_function(&mut self, func: &'hir Item<'hir>)
fn exit_function(&mut self)
fn enter_module(&mut self, _mod: &'ast Module<'ast>)
fn exit_module(&mut self)
fn enter_struct(&mut self, _mod: &'ast Item<'ast>)
fn exit_struct(&mut self)
Auto Trait Implementations§
impl<'hir> Freeze for BaseVisitorCtx<'hir>
impl<'hir> !RefUnwindSafe for BaseVisitorCtx<'hir>
impl<'hir> !Send for BaseVisitorCtx<'hir>
impl<'hir> !Sync for BaseVisitorCtx<'hir>
impl<'hir> Unpin for BaseVisitorCtx<'hir>
impl<'hir> !UnwindSafe for BaseVisitorCtx<'hir>
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