pub enum ReplaceRangeError {
OutOfBounds {
start: usize,
end: usize,
len: usize,
},
NotCharBoundary {
idx: usize,
},
TooLong,
}Expand description
An error returned by replace-range operations.
Variants§
OutOfBounds
The range bounds are invalid or out of bounds.
NotCharBoundary
The range start or end is not on a UTF-8 character boundary.
TooLong
The result would exceed the fixed capacity.
Trait Implementations§
Source§impl Clone for ReplaceRangeError
impl Clone for ReplaceRangeError
Source§fn clone(&self) -> ReplaceRangeError
fn clone(&self) -> ReplaceRangeError
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 ReplaceRangeError
impl Debug for ReplaceRangeError
Source§impl Display for ReplaceRangeError
impl Display for ReplaceRangeError
Source§impl PartialEq for ReplaceRangeError
impl PartialEq for ReplaceRangeError
impl Copy for ReplaceRangeError
impl Eq for ReplaceRangeError
impl StructuralPartialEq for ReplaceRangeError
Auto Trait Implementations§
impl Freeze for ReplaceRangeError
impl RefUnwindSafe for ReplaceRangeError
impl Send for ReplaceRangeError
impl Sync for ReplaceRangeError
impl Unpin for ReplaceRangeError
impl UnsafeUnpin for ReplaceRangeError
impl UnwindSafe for ReplaceRangeError
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