#[repr(u8)]pub enum StructuredOutputTokenClass {
Whitespace = 0,
Number = 1,
Structural = 2,
StringBoundary = 3,
Literal = 4,
Other = 5,
Control = 6,
Undefined = 7,
}Expand description
Privacy-safe lexical class for the tail of an incomplete grammar.
This deliberately exposes neither decoded text nor a token history. It is used only by terminal diagnostics to distinguish an unbounded whitespace, number, string, or control-token run from a parser activation failure.
Variants§
Whitespace = 0
Number = 1
Structural = 2
StringBoundary = 3
Literal = 4
Other = 5
Control = 6
Undefined = 7
Trait Implementations§
Source§impl Clone for StructuredOutputTokenClass
impl Clone for StructuredOutputTokenClass
Source§fn clone(&self) -> StructuredOutputTokenClass
fn clone(&self) -> StructuredOutputTokenClass
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 moreimpl Copy for StructuredOutputTokenClass
Source§impl Debug for StructuredOutputTokenClass
impl Debug for StructuredOutputTokenClass
impl Eq for StructuredOutputTokenClass
impl StructuralPartialEq for StructuredOutputTokenClass
Auto Trait Implementations§
impl Freeze for StructuredOutputTokenClass
impl RefUnwindSafe for StructuredOutputTokenClass
impl Send for StructuredOutputTokenClass
impl Sync for StructuredOutputTokenClass
impl Unpin for StructuredOutputTokenClass
impl UnsafeUnpin for StructuredOutputTokenClass
impl UnwindSafe for StructuredOutputTokenClass
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.