pub struct StructuredOutputMaskOutcome {
pub phase: StructuredOutputPhase,
pub accepting: bool,
pub liveness_intervention: bool,
pub grammar_start_token_index: Option<usize>,
pub required_delimiter_token_id: Option<u32>,
}Expand description
Allocation-free hot-path result of one structured-output mask operation.
Fields§
§phase: StructuredOutputPhase§accepting: bool§liveness_intervention: bool§grammar_start_token_index: Option<usize>Generated-token index at which the visible grammar-owned output starts.
None means the processor is still in the hidden pre-grammar domain.
The execution engine uses this boundary to scope request-local sampling
history without teaching the grammar about penalty policy.
required_delimiter_token_id: Option<u32>Exact delimiter token authorized for the next sampling step while the processor is waiting to activate. The engine uses this typed grant to avoid rejecting an intentionally hidden special token during output quality filtering.
Trait Implementations§
Source§impl Clone for StructuredOutputMaskOutcome
impl Clone for StructuredOutputMaskOutcome
Source§fn clone(&self) -> StructuredOutputMaskOutcome
fn clone(&self) -> StructuredOutputMaskOutcome
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 StructuredOutputMaskOutcome
Source§impl Debug for StructuredOutputMaskOutcome
impl Debug for StructuredOutputMaskOutcome
impl Eq for StructuredOutputMaskOutcome
impl StructuralPartialEq for StructuredOutputMaskOutcome
Auto Trait Implementations§
impl Freeze for StructuredOutputMaskOutcome
impl RefUnwindSafe for StructuredOutputMaskOutcome
impl Send for StructuredOutputMaskOutcome
impl Sync for StructuredOutputMaskOutcome
impl Unpin for StructuredOutputMaskOutcome
impl UnsafeUnpin for StructuredOutputMaskOutcome
impl UnwindSafe for StructuredOutputMaskOutcome
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.