pub enum EagerRecordError {
CountMismatch {
field: &'static str,
expected: usize,
actual: usize,
},
KeyMismatch {
field: &'static str,
index: usize,
},
TooManyOutputs {
actual: usize,
max: usize,
},
}Expand description
Error returned when eager graph recording receives inconsistent metadata.
These errors describe caller-visible recording contract violations. AD rule
failures during linearization are still reported as crate::ADRuleError.
Variants§
CountMismatch
A caller supplied a slice whose length must match graph metadata.
Fields
KeyMismatch
A caller supplied keys in an order that does not match the graph.
TooManyOutputs
The graph has more outputs than eager tracing can address.
Trait Implementations§
Source§impl Clone for EagerRecordError
impl Clone for EagerRecordError
Source§fn clone(&self) -> EagerRecordError
fn clone(&self) -> EagerRecordError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EagerRecordError
impl Debug for EagerRecordError
Source§impl Display for EagerRecordError
impl Display for EagerRecordError
Source§impl Error for EagerRecordError
impl Error for EagerRecordError
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 EagerRecordError
impl PartialEq for EagerRecordError
impl Eq for EagerRecordError
impl StructuralPartialEq for EagerRecordError
Auto Trait Implementations§
impl Freeze for EagerRecordError
impl RefUnwindSafe for EagerRecordError
impl Send for EagerRecordError
impl Sync for EagerRecordError
impl Unpin for EagerRecordError
impl UnsafeUnpin for EagerRecordError
impl UnwindSafe for EagerRecordError
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