pub enum MaskOutcome {
Allowed,
Complete,
}Expand description
What a mask left behind.
Variants§
Allowed
At least one token survived; sample normally.
Complete
Nothing survived, and the parse is COMPLETE.
Reached when a satisfied grammar can be continued by nothing and
the vocabulary has no end-of-generation token to end on – which
is otherwise the ordinary way a constrained generation stops,
since a satisfied grammar leaves EOG unmasked and it is the only
thing left to sample. The generation is finished, and the token
that comes back out of an all--inf distribution is not a
choice and must be discarded.
Trait Implementations§
Source§impl Clone for MaskOutcome
impl Clone for MaskOutcome
Source§fn clone(&self) -> MaskOutcome
fn clone(&self) -> MaskOutcome
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 MaskOutcome
Source§impl Debug for MaskOutcome
impl Debug for MaskOutcome
impl Eq for MaskOutcome
Source§impl PartialEq for MaskOutcome
impl PartialEq for MaskOutcome
impl StructuralPartialEq for MaskOutcome
Auto Trait Implementations§
impl Freeze for MaskOutcome
impl RefUnwindSafe for MaskOutcome
impl Send for MaskOutcome
impl Sync for MaskOutcome
impl Unpin for MaskOutcome
impl UnsafeUnpin for MaskOutcome
impl UnwindSafe for MaskOutcome
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more