pub struct Split {
pub tokens: usize,
pub groups: Vec<Group>,
pub truncated: bool,
}Expand description
A preview of the start of a text, with its complete token count.
Fields§
§tokens: usizeNumber of tokens in the entire input.
groups: Vec<Group>Consecutive groups starting at byte zero, in input order.
truncated: boolWhether any text remains after the last returned group.
Trait Implementations§
impl Eq for Split
impl StructuralPartialEq for Split
Auto Trait Implementations§
impl Forget for Split
impl Freeze for Split
impl Move for Split
impl RefUnwindSafe for Split
impl Send for Splitwhere
RawVecInner: Send,
impl Sync for Splitwhere
RawVecInner: Sync,
impl Unpin for Split
impl UnsafeUnpin for Split
impl UnwindSafe for Splitwhere
RawVecInner: UnwindSafe,
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