pub enum RemoveError {
OutOfBounds {
idx: usize,
len: usize,
},
NotCharBoundary {
idx: usize,
},
}Expand description
An error returned by removal operations.
Variants§
OutOfBounds
The index is outside the string bounds.
NotCharBoundary
The index is not on a UTF-8 character boundary.
Trait Implementations§
Source§impl Clone for RemoveError
impl Clone for RemoveError
Source§fn clone(&self) -> RemoveError
fn clone(&self) -> RemoveError
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 RemoveError
Source§impl Debug for RemoveError
impl Debug for RemoveError
Source§impl Display for RemoveError
impl Display for RemoveError
impl Eq for RemoveError
Source§impl PartialEq for RemoveError
impl PartialEq for RemoveError
Source§fn eq(&self, other: &RemoveError) -> bool
fn eq(&self, other: &RemoveError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RemoveError
Auto Trait Implementations§
impl Freeze for RemoveError
impl RefUnwindSafe for RemoveError
impl Send for RemoveError
impl Sync for RemoveError
impl Unpin for RemoveError
impl UnsafeUnpin for RemoveError
impl UnwindSafe for RemoveError
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