pub struct ReplayProviderOpts {
pub tokenizer: Option<Box<dyn Fn(&str) -> u32 + Send + Sync>>,
pub wrap: bool,
}Expand description
Options for ReplayProvider.
Fields§
§tokenizer: Option<Box<dyn Fn(&str) -> u32 + Send + Sync>>Maps a rendered text payload to a token count. Defaults to chars / 4.
wrap: boolWhen true, stream() wraps to the start once the fixture is exhausted instead of erroring.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ReplayProviderOpts
impl !UnwindSafe for ReplayProviderOpts
impl Freeze for ReplayProviderOpts
impl Send for ReplayProviderOpts
impl Sync for ReplayProviderOpts
impl Unpin for ReplayProviderOpts
impl UnsafeUnpin for ReplayProviderOpts
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