pub type LengthFn = Arc<dyn Fn(&str) -> usize + Send + Sync>;
A custom length function for text splitting (e.g. token counting).
pub struct LengthFn { /* private fields */ }