#[non_exhaustive]pub enum ModelCapabilityMismatchError {
Empty,
Duplicate {
issue: ModelCapabilityIssue,
},
DuplicateDimension {
issue: ModelCapabilityIssue,
},
IncoherentIssue {
issue: ModelCapabilityIssue,
},
TooMany {
max: usize,
observed: usize,
},
}Expand description
Invalid mismatch diagnostic set.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
A successful negotiation was incorrectly represented as an error.
Duplicate
One diagnostic issue appeared more than once.
Fields
§
issue: ModelCapabilityIssueRepeated diagnostic.
DuplicateDimension
Two different diagnostics described the same requirement dimension.
Fields
§
issue: ModelCapabilityIssueLater conflicting diagnostic.
IncoherentIssue
A diagnostic claimed a mismatch despite sufficient or empty capacity.
Fields
§
issue: ModelCapabilityIssueIllogical diagnostic.
TooMany
Diagnostic input exceeded the hard ceiling.
Trait Implementations§
Source§impl Clone for ModelCapabilityMismatchError
impl Clone for ModelCapabilityMismatchError
Source§impl Debug for ModelCapabilityMismatchError
impl Debug for ModelCapabilityMismatchError
impl Eq for ModelCapabilityMismatchError
Source§impl Error for ModelCapabilityMismatchError
impl Error for ModelCapabilityMismatchError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for ModelCapabilityMismatchError
Auto Trait Implementations§
impl Forget for ModelCapabilityMismatchError
impl Freeze for ModelCapabilityMismatchError
impl Move for ModelCapabilityMismatchError
impl RefUnwindSafe for ModelCapabilityMismatchError
impl Send for ModelCapabilityMismatchError
impl Sync for ModelCapabilityMismatchError
impl Unpin for ModelCapabilityMismatchError
impl UnsafeUnpin for ModelCapabilityMismatchError
impl UnwindSafe for ModelCapabilityMismatchError
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