pub struct RustStrategy;Trait Implementations§
Source§impl ChunkingStrategy for RustStrategy
impl ChunkingStrategy for RustStrategy
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 RustStrategy
impl RefUnwindSafe for RustStrategy
impl Send for RustStrategy
impl Sync for RustStrategy
impl Unpin for RustStrategy
impl UnwindSafe for RustStrategy
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