pub enum ContextKind {
Function,
Impl,
Module,
Block,
}Expand description
Categorizes a frame within the traversal stack.
Variants§
Function
A free function (including methods lowered to free functions).
Impl
An implementation block.
Module
A module or namespace boundary.
Block
A lexical block (e.g. closure, loop, or bare block).
Implementations§
Source§impl ContextKind
impl ContextKind
Sourcepub const fn matches_function(&self) -> bool
pub const fn matches_function(&self) -> bool
Returns true when the kind is ContextKind::Function.
Trait Implementations§
Source§impl Clone for ContextKind
impl Clone for ContextKind
Source§fn clone(&self) -> ContextKind
fn clone(&self) -> ContextKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContextKind
impl Debug for ContextKind
impl Eq for ContextKind
Source§impl PartialEq for ContextKind
impl PartialEq for ContextKind
impl StructuralPartialEq for ContextKind
Auto Trait Implementations§
impl Freeze for ContextKind
impl RefUnwindSafe for ContextKind
impl Send for ContextKind
impl Sync for ContextKind
impl Unpin for ContextKind
impl UnsafeUnpin for ContextKind
impl UnwindSafe for ContextKind
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