pub struct TextSplit {
pub indices: Range<usize>,
pub split_separator: Separator,
pub base_text: Arc<str>,
pub token_count: Option<u32>,
}Fields§
§indices: Range<usize>§split_separator: Separator§base_text: Arc<str>§token_count: Option<u32>Token count computed by the tokenizer, if one was provided.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextSplit
impl RefUnwindSafe for TextSplit
impl Send for TextSplit
impl Sync for TextSplit
impl Unpin for TextSplit
impl UnsafeUnpin for TextSplit
impl UnwindSafe for TextSplit
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