pub struct ThinkSplitter { /* private fields */ }Expand description
A streaming splitter that separates thinking spans from visible text.
Implementations§
Source§impl ThinkSplitter
impl ThinkSplitter
Sourcepub fn with_pairs(pairs: Vec<TagPair>) -> Self
pub fn with_pairs(pairs: Vec<TagPair>) -> Self
A splitter using the given delimiter pairs. Pairs with an empty open or close delimiter are dropped — an empty delimiter would match everywhere and make no progress.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ThinkSplitter
impl RefUnwindSafe for ThinkSplitter
impl Send for ThinkSplitter
impl Sync for ThinkSplitter
impl Unpin for ThinkSplitter
impl UnsafeUnpin for ThinkSplitter
impl UnwindSafe for ThinkSplitter
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