pub struct ChunkContext {
pub language: String,
pub chunk_index: usize,
pub total_chunks: usize,
pub node_types: Vec<String>,
pub context_path: Vec<String>,
pub symbols_defined: Vec<String>,
pub comments: Vec<CommentInfo>,
pub docstrings: Vec<DocstringInfo>,
pub has_error_nodes: bool,
}Expand description
Metadata for a single chunk of source code.
Fields§
§language: String§chunk_index: usize§total_chunks: usize§node_types: Vec<String>§context_path: Vec<String>§symbols_defined: Vec<String>§comments: Vec<CommentInfo>§docstrings: Vec<DocstringInfo>§has_error_nodes: boolTrait Implementations§
Source§impl Clone for ChunkContext
impl Clone for ChunkContext
Source§fn clone(&self) -> ChunkContext
fn clone(&self) -> ChunkContext
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 ChunkContext
impl Debug for ChunkContext
Source§impl Default for ChunkContext
impl Default for ChunkContext
Source§fn default() -> ChunkContext
fn default() -> ChunkContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ChunkContext
impl RefUnwindSafe for ChunkContext
impl Send for ChunkContext
impl Sync for ChunkContext
impl Unpin for ChunkContext
impl UnsafeUnpin for ChunkContext
impl UnwindSafe for ChunkContext
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