Trait code_splitter::Sizer

source ·
pub trait Sizer {
    // Required method
    fn size(&self, text: &str) -> Result<usize>;
}
Expand description

An interface for counting the size of a code chunk.

Required Methods§

source

fn size(&self, text: &str) -> Result<usize>

Implementors§