pub struct ParseContext {
pub repo_id: String,
pub file_path: PathBuf,
pub old_tree: Option<Tree>,
pub content: String,
}
Expand description
Parse context for Python files
Fields§
§repo_id: String
Repository ID
file_path: PathBuf
File path being parsed
old_tree: Option<Tree>
Previous tree for incremental parsing
content: String
File content
Trait Implementations§
Source§impl Clone for ParseContext
impl Clone for ParseContext
Source§fn clone(&self) -> ParseContext
fn clone(&self) -> ParseContext
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ParseContext
impl RefUnwindSafe for ParseContext
impl Send for ParseContext
impl Sync for ParseContext
impl Unpin for ParseContext
impl UnwindSafe for ParseContext
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