pub struct SymbolContext {
pub in_function: Option<Symbol>,
pub in_test_function: Option<Symbol>,
pub in_struct: Option<Symbol>,
pub in_enum: Option<Symbol>,
pub in_trait: Option<Symbol>,
pub in_module: Option<Symbol>,
pub in_impl: Option<Symbol>,
}
Expand description
Context information about symbols surrounding a cursor position
Fields§
§in_function: Option<Symbol>
The function containing the cursor (if any)
in_test_function: Option<Symbol>
The test function containing the cursor (if any)
in_struct: Option<Symbol>
The struct containing the cursor (if any)
in_enum: Option<Symbol>
The enum containing the cursor (if any)
in_trait: Option<Symbol>
The trait containing the cursor (if any)
in_module: Option<Symbol>
The module containing the cursor (if any)
in_impl: Option<Symbol>
The impl block containing the cursor (if any)
Trait Implementations§
Source§impl Clone for SymbolContext
impl Clone for SymbolContext
Source§fn clone(&self) -> SymbolContext
fn clone(&self) -> SymbolContext
Returns a duplicate of the value. Read more
1.0.0 · 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 SymbolContext
impl Debug for SymbolContext
Source§impl Default for SymbolContext
impl Default for SymbolContext
Source§fn default() -> SymbolContext
fn default() -> SymbolContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SymbolContext
impl RefUnwindSafe for SymbolContext
impl Send for SymbolContext
impl Sync for SymbolContext
impl Unpin for SymbolContext
impl UnwindSafe for SymbolContext
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