pub enum SparseSequenceError {
LengthLimit {
requested: usize,
limit: usize,
},
IndexOverflow {
index: usize,
},
}Expand description
A failed sparse-sequence growth or length mutation.
Variants§
LengthLimit
The requested logical length exceeds the configured limit.
Fields
IndexOverflow
An index could not be converted into the required logical length.
Trait Implementations§
Source§impl Clone for SparseSequenceError
impl Clone for SparseSequenceError
Source§fn clone(&self) -> SparseSequenceError
fn clone(&self) -> SparseSequenceError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SparseSequenceError
Source§impl Debug for SparseSequenceError
impl Debug for SparseSequenceError
Source§impl Display for SparseSequenceError
impl Display for SparseSequenceError
impl Eq for SparseSequenceError
Source§impl Error for SparseSequenceError
impl Error for SparseSequenceError
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 SparseSequenceError
impl PartialEq for SparseSequenceError
impl StructuralPartialEq for SparseSequenceError
Auto Trait Implementations§
impl Freeze for SparseSequenceError
impl RefUnwindSafe for SparseSequenceError
impl Send for SparseSequenceError
impl Sync for SparseSequenceError
impl Unpin for SparseSequenceError
impl UnsafeUnpin for SparseSequenceError
impl UnwindSafe for SparseSequenceError
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