pub struct PythonStrategy;Trait Implementations§
Source§impl ChunkingStrategy for PythonStrategy
impl ChunkingStrategy for PythonStrategy
Source§fn semantic_node_types(&self) -> &[&str]
fn semantic_node_types(&self) -> &[&str]
Get the node types that represent semantic boundaries
Source§fn extract_chunks(
&self,
source: &str,
root: Node<'_>,
) -> Result<Vec<SemanticChunk>>
fn extract_chunks( &self, source: &str, root: Node<'_>, ) -> Result<Vec<SemanticChunk>>
Extract chunks from the source given the AST root
Source§fn chunk_type_for_node(&self, node: Node<'_>) -> ChunkType
fn chunk_type_for_node(&self, node: Node<'_>) -> ChunkType
Determine chunk type from AST node
Auto Trait Implementations§
impl Freeze for PythonStrategy
impl RefUnwindSafe for PythonStrategy
impl Send for PythonStrategy
impl Sync for PythonStrategy
impl Unpin for PythonStrategy
impl UnwindSafe for PythonStrategy
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