pub struct DiffBatchFailure {
pub total: usize,
pub failure_count: usize,
pub first_index: usize,
pub first_status: DiffStatus,
}Expand description
One or more lanes of a DerivativeBatch or JacobianBatch failed.
Returned by the all-or-nothing accessors DerivativeBatch::values and
JacobianBatch::matrices. It names both the scale of the problem (how
many of how many) and a specific lane to look at, because “3 of 10 000 lanes
failed” is only actionable once you know which lane.
§Units
All counts and indices are dimensionless.
Fields§
§total: usizeNumber of lanes in the batch.
failure_count: usizeNumber of lanes that failed.
first_index: usizeIndex of the first failing lane.
first_status: DiffStatusWhy that lane failed.
Trait Implementations§
Source§impl Clone for DiffBatchFailure
impl Clone for DiffBatchFailure
impl Copy for DiffBatchFailure
Source§impl Debug for DiffBatchFailure
impl Debug for DiffBatchFailure
Source§impl Display for DiffBatchFailure
impl Display for DiffBatchFailure
impl Eq for DiffBatchFailure
Source§impl Error for DiffBatchFailure
impl Error for DiffBatchFailure
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 DiffBatchFailure
impl PartialEq for DiffBatchFailure
impl StructuralPartialEq for DiffBatchFailure
Auto Trait Implementations§
impl Freeze for DiffBatchFailure
impl RefUnwindSafe for DiffBatchFailure
impl Send for DiffBatchFailure
impl Sync for DiffBatchFailure
impl Unpin for DiffBatchFailure
impl UnsafeUnpin for DiffBatchFailure
impl UnwindSafe for DiffBatchFailure
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