pub struct SemanticContext {
pub current_file: Option<PathBuf>,
pub recent_files: Vec<PathBuf>,
pub cursor_context: Option<CursorContext>,
pub symbol_table: HashMap<String, SymbolInfo>,
pub code_patterns: Vec<CodePattern>,
pub dependency_graph: HashMap<String, Vec<String>>,
}
Expand description
Enhanced context representation with semantic understanding
Fields§
§current_file: Option<PathBuf>
Current file being worked on
recent_files: Vec<PathBuf>
Recently accessed files (LRU cache)
cursor_context: Option<CursorContext>
Current cursor position and selection
symbol_table: HashMap<String, SymbolInfo>
Project-wide symbols and definitions
code_patterns: Vec<CodePattern>
Code patterns and conventions observed
dependency_graph: HashMap<String, Vec<String>>
Import relationships and dependencies
Trait Implementations§
Source§impl Clone for SemanticContext
impl Clone for SemanticContext
Source§fn clone(&self) -> SemanticContext
fn clone(&self) -> SemanticContext
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 SemanticContext
impl Debug for SemanticContext
Source§impl<'de> Deserialize<'de> for SemanticContext
impl<'de> Deserialize<'de> for SemanticContext
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
Auto Trait Implementations§
impl Freeze for SemanticContext
impl RefUnwindSafe for SemanticContext
impl Send for SemanticContext
impl Sync for SemanticContext
impl Unpin for SemanticContext
impl UnwindSafe for SemanticContext
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