pub enum InferenceMethodError {
WrongParentCount {
method: InferenceMethod,
rule: ParentCountRule,
got: usize,
},
TooManyParents {
method: InferenceMethod,
limit: usize,
got: usize,
},
}Expand description
Errors from InferenceMethod::compute.
Variants§
WrongParentCount
Parent count did not match the method’s ParentCountRule.
TooManyParents
Supplied parent count exceeds the u128 product capacity. Bounded at 8 for methods that compute a joint product across all parents; relaxing this requires a log-table implementation.
Trait Implementations§
Source§impl Debug for InferenceMethodError
impl Debug for InferenceMethodError
Source§impl Display for InferenceMethodError
impl Display for InferenceMethodError
Source§impl Error for InferenceMethodError
impl Error for InferenceMethodError
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()
Source§impl PartialEq for InferenceMethodError
impl PartialEq for InferenceMethodError
impl Eq for InferenceMethodError
impl StructuralPartialEq for InferenceMethodError
Auto Trait Implementations§
impl Freeze for InferenceMethodError
impl RefUnwindSafe for InferenceMethodError
impl Send for InferenceMethodError
impl Sync for InferenceMethodError
impl Unpin for InferenceMethodError
impl UnsafeUnpin for InferenceMethodError
impl UnwindSafe for InferenceMethodError
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<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.