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 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<'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)>
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()
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