pub struct PreTokProgram {
pub version: u32,
pub ops: Vec<PreTokOp>,
}Expand description
A compiled pre-tokenizer program. Carried alongside the legacy
pre_tokenizer_pattern on v2.1+ maps. Runtimes prefer the program
when present; falls back to the regex otherwise.
Fields§
§version: u32§ops: Vec<PreTokOp>Trait Implementations§
Source§impl Clone for PreTokProgram
impl Clone for PreTokProgram
Source§fn clone(&self) -> PreTokProgram
fn clone(&self) -> PreTokProgram
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 PreTokProgram
impl Debug for PreTokProgram
Source§impl<'de> Deserialize<'de> for PreTokProgram
impl<'de> Deserialize<'de> for PreTokProgram
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PreTokProgram
impl RefUnwindSafe for PreTokProgram
impl Send for PreTokProgram
impl Sync for PreTokProgram
impl Unpin for PreTokProgram
impl UnsafeUnpin for PreTokProgram
impl UnwindSafe for PreTokProgram
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