Skip to main content

LengthFn

Type Alias LengthFn 

Source
pub type LengthFn = Arc<dyn Fn(&str) -> usize + Send + Sync>;
Expand description

A custom length function for text splitting (e.g. token counting).

Aliased Typeยง

pub struct LengthFn { /* private fields */ }