pub struct DetokenizeOptions {
pub partial: bool,
pub render_special: bool,
}Expand description
Options for Detokenizer::render.
Fields§
§partial: boolIf true, this is not the final chunk — buffer any trailing
partial UTF-8 sequence rather than emitting replacement
characters. Set to false on the last chunk so the buffer flushes.
render_special: boolIf true, render special tokens (e.g. <|eos|>) as text. Default: false.
Trait Implementations§
Source§impl Clone for DetokenizeOptions
impl Clone for DetokenizeOptions
Source§fn clone(&self) -> DetokenizeOptions
fn clone(&self) -> DetokenizeOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DetokenizeOptions
impl Debug for DetokenizeOptions
Source§impl Default for DetokenizeOptions
impl Default for DetokenizeOptions
Source§fn default() -> DetokenizeOptions
fn default() -> DetokenizeOptions
Returns the “default value” for a type. Read more
impl Copy for DetokenizeOptions
Auto Trait Implementations§
impl Freeze for DetokenizeOptions
impl RefUnwindSafe for DetokenizeOptions
impl Send for DetokenizeOptions
impl Sync for DetokenizeOptions
impl Unpin for DetokenizeOptions
impl UnsafeUnpin for DetokenizeOptions
impl UnwindSafe for DetokenizeOptions
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