pub enum LanguageStrategy {
Rust(RustStrategy),
Python(PythonStrategy),
JavaScript(JavaScriptStrategy),
Go(GoStrategy),
}Expand description
Enum-based strategy dispatch to avoid heap allocation
Variants§
Implementations§
Source§impl LanguageStrategy
impl LanguageStrategy
pub fn for_language(language: Language) -> Self
pub fn extract_chunks( &self, source: &str, root: Node<'_>, ) -> Result<Vec<SemanticChunk>>
Auto Trait Implementations§
impl Freeze for LanguageStrategy
impl RefUnwindSafe for LanguageStrategy
impl Send for LanguageStrategy
impl Sync for LanguageStrategy
impl Unpin for LanguageStrategy
impl UnwindSafe for LanguageStrategy
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