pub enum RefContext {
Body,
TypeAttribute,
}Expand description
Where in the source a reference was extracted from. The same
textual mod:ident(...) shape means a function call in body
context and a type reference in type-attribute context, so the
extractor must carry the surrounding context with each symbol it
emits.
Variants§
Body
Inside a function body, top-level expression, or anywhere that
is not a -spec, -callback, -type, or -opaque attribute.
TypeAttribute
Inside a -spec, -callback, -type, or -opaque attribute,
where mod:ident(...) is a type reference, not a function call.
Trait Implementations§
Source§impl Clone for RefContext
impl Clone for RefContext
Source§fn clone(&self) -> RefContext
fn clone(&self) -> RefContext
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 moreimpl Copy for RefContext
Source§impl Debug for RefContext
impl Debug for RefContext
impl Eq for RefContext
Source§impl Hash for RefContext
impl Hash for RefContext
Source§impl PartialEq for RefContext
impl PartialEq for RefContext
impl StructuralPartialEq for RefContext
Auto Trait Implementations§
impl Freeze for RefContext
impl RefUnwindSafe for RefContext
impl Send for RefContext
impl Sync for RefContext
impl Unpin for RefContext
impl UnsafeUnpin for RefContext
impl UnwindSafe for RefContext
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