pub enum InvalidRecordIteratorError<'a, T, const D: usize> {
Shape {
requested: InvalidShapeError<D>,
length: usize,
},
Empty,
InconsistentHistory(InconsistentHistory<'a, T>),
}
Expand description
An error due to an invalid record iterator. One of three cases
Shape
: the iterator data didn’t match the number of elements needed for a given shape to convert back into a record containerEmpty
: the iterator was empty, which is always an invalid length for any shapeInconsistentHistory
: the iterator contains inconsistent histories in its data and so cannot be converted into a record container because a record container can only have one history for all its data
Variants§
Trait Implementations§
source§impl<'a, T: Clone, const D: usize> Clone for InvalidRecordIteratorError<'a, T, D>
impl<'a, T: Clone, const D: usize> Clone for InvalidRecordIteratorError<'a, T, D>
source§fn clone(&self) -> InvalidRecordIteratorError<'a, T, D>
fn clone(&self) -> InvalidRecordIteratorError<'a, T, D>
Returns a copy 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<'a, T, const D: usize> Error for InvalidRecordIteratorError<'a, T, D>where
T: Debug,
impl<'a, T, const D: usize> Error for InvalidRecordIteratorError<'a, T, D>where
T: Debug,
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl<'a, T, const D: usize> Freeze for InvalidRecordIteratorError<'a, T, D>
impl<'a, T, const D: usize> !RefUnwindSafe for InvalidRecordIteratorError<'a, T, D>
impl<'a, T, const D: usize> !Send for InvalidRecordIteratorError<'a, T, D>
impl<'a, T, const D: usize> !Sync for InvalidRecordIteratorError<'a, T, D>
impl<'a, T, const D: usize> Unpin for InvalidRecordIteratorError<'a, T, D>
impl<'a, T, const D: usize> !UnwindSafe for InvalidRecordIteratorError<'a, T, D>
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)