pub struct Context<'a> {
pub kind: ContextKind,
pub span: Span,
pub item: &'a str,
}Expand description
The metadata of one emitted context candidate.
Fields§
§kind: ContextKindThe kind of lexical scope covered.
span: SpanThe candidate span from the supplied syntax tree, outer delimiters included.
item: &'a strThe item containing the candidate, relative to the caller’s module prefix.
Auto Trait Implementations§
impl<'a> !Send for Context<'a>
impl<'a> !Sync for Context<'a>
impl<'a> Freeze for Context<'a>
impl<'a> RefUnwindSafe for Context<'a>
impl<'a> Unpin for Context<'a>
impl<'a> UnsafeUnpin for Context<'a>
impl<'a> UnwindSafe for Context<'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