pub enum CursorContextType {
Show 18 variants
VariableDeclaration,
ParameterDeclaration,
VariableUse,
FieldAccess,
ObjectAccess,
StructField,
FunctionName,
FunctionDeclaration,
FunctionCall,
Assignment,
GoroutineContext,
GoroutineStatement,
TypeReference,
PackageReference,
ChannelType,
InterfaceType,
StructType,
Unknown,
}Expand description
Types of contexts where cursor can be positioned
Variants§
VariableDeclaration
Cursor is on a variable declaration
ParameterDeclaration
Cursor is on a parameter declaration
VariableUse
Cursor is on a variable usage
FieldAccess
Cursor is on a struct field access (obj.field)
ObjectAccess
Cursor is on the object part of field access
StructField
Cursor is on a struct field definition
FunctionName
Cursor is on a function name (declaration)
FunctionDeclaration
Cursor is on a function declaration
FunctionCall
Cursor is on a function call
Assignment
Cursor is on an assignment statement
GoroutineContext
Cursor is in a goroutine context
GoroutineStatement
Cursor is on a go statement
TypeReference
Cursor is on a type reference
PackageReference
Cursor is on a package reference
ChannelType
Cursor is on a channel type
InterfaceType
Cursor is on an interface type
StructType
Cursor is on a struct type
Unknown
Unknown or unsupported context
Trait Implementations§
Source§impl Clone for CursorContextType
impl Clone for CursorContextType
Source§fn clone(&self) -> CursorContextType
fn clone(&self) -> CursorContextType
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 CursorContextType
impl Debug for CursorContextType
Source§impl<'de> Deserialize<'de> for CursorContextType
impl<'de> Deserialize<'de> for CursorContextType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CursorContextType
Source§impl PartialEq for CursorContextType
impl PartialEq for CursorContextType
Source§fn eq(&self, other: &CursorContextType) -> bool
fn eq(&self, other: &CursorContextType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CursorContextType
impl Serialize for CursorContextType
impl StructuralPartialEq for CursorContextType
Auto Trait Implementations§
impl Freeze for CursorContextType
impl RefUnwindSafe for CursorContextType
impl Send for CursorContextType
impl Sync for CursorContextType
impl Unpin for CursorContextType
impl UnsafeUnpin for CursorContextType
impl UnwindSafe for CursorContextType
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