pub enum PromptDiagnosticCode {
ExactDuplicate,
ConflictShadowed,
ProtectedConflict,
OmittedForBudget,
TruncatedForBudget,
}Expand description
Stable prompt-compiler diagnostic classification.
Variants§
ExactDuplicate
An exact duplicate segment was emitted only once.
ConflictShadowed
A lower-precedence conflict was shadowed by a replaceable winner.
ProtectedConflict
A lower-precedence claim could not override a protected winner.
OmittedForBudget
A segment was omitted due to explicit budget behavior.
TruncatedForBudget
A segment was deterministically truncated.
Trait Implementations§
Source§impl Clone for PromptDiagnosticCode
impl Clone for PromptDiagnosticCode
Source§fn clone(&self) -> PromptDiagnosticCode
fn clone(&self) -> PromptDiagnosticCode
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 PromptDiagnosticCode
Source§impl Debug for PromptDiagnosticCode
impl Debug for PromptDiagnosticCode
impl Eq for PromptDiagnosticCode
Source§impl Hash for PromptDiagnosticCode
impl Hash for PromptDiagnosticCode
Source§impl Ord for PromptDiagnosticCode
impl Ord for PromptDiagnosticCode
Source§fn cmp(&self, other: &PromptDiagnosticCode) -> Ordering
fn cmp(&self, other: &PromptDiagnosticCode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PromptDiagnosticCode
impl PartialEq for PromptDiagnosticCode
Source§impl PartialOrd for PromptDiagnosticCode
impl PartialOrd for PromptDiagnosticCode
impl StructuralPartialEq for PromptDiagnosticCode
Auto Trait Implementations§
impl Freeze for PromptDiagnosticCode
impl RefUnwindSafe for PromptDiagnosticCode
impl Send for PromptDiagnosticCode
impl Sync for PromptDiagnosticCode
impl Unpin for PromptDiagnosticCode
impl UnsafeUnpin for PromptDiagnosticCode
impl UnwindSafe for PromptDiagnosticCode
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