pub struct FileContext {
pub path: PathBuf,
pub language: Language,
pub symbols: Vec<Symbol>,
pub imports: Vec<Import>,
pub cursor_symbol: Option<Symbol>,
pub module_path: Option<String>,
}
Expand description
File-specific context information
Fields§
§path: PathBuf
Path to the file
language: Language
Programming language of the file
symbols: Vec<Symbol>
Symbols found in the file (functions, structs, etc.)
imports: Vec<Import>
Import statements in the file
cursor_symbol: Option<Symbol>
Symbol at the current cursor position
module_path: Option<String>
Module this file belongs to
Trait Implementations§
Source§impl Clone for FileContext
impl Clone for FileContext
Source§fn clone(&self) -> FileContext
fn clone(&self) -> FileContext
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 moreAuto Trait Implementations§
impl Freeze for FileContext
impl RefUnwindSafe for FileContext
impl Send for FileContext
impl Sync for FileContext
impl Unpin for FileContext
impl UnwindSafe for FileContext
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