pub enum VectorModificationError {
OutOfBounds,
InsertWouldExceedCapacity,
}Expand description
Error which can occur when a Vector is modified.
Variants§
OutOfBounds
An element shall be modified that is not contained in the vector.
InsertWouldExceedCapacity
The content that shall be added would exceed the maximum capacity of the
Vector.
Trait Implementations§
Source§impl Clone for VectorModificationError
impl Clone for VectorModificationError
Source§fn clone(&self) -> VectorModificationError
fn clone(&self) -> VectorModificationError
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 VectorModificationError
impl Debug for VectorModificationError
Source§impl Display for VectorModificationError
impl Display for VectorModificationError
Source§impl Error for VectorModificationError
impl Error for VectorModificationError
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 VectorModificationError
impl PartialEq for VectorModificationError
impl Copy for VectorModificationError
impl Eq for VectorModificationError
impl StructuralPartialEq for VectorModificationError
Auto Trait Implementations§
impl Freeze for VectorModificationError
impl RefUnwindSafe for VectorModificationError
impl Send for VectorModificationError
impl Sync for VectorModificationError
impl Unpin for VectorModificationError
impl UnwindSafe for VectorModificationError
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