pub enum TextRangeError {
Reversed {
start: u32,
end: u32,
},
OffsetTooLarge {
offset: usize,
},
}Variants§
Trait Implementations§
Source§impl Clone for TextRangeError
impl Clone for TextRangeError
impl Copy for TextRangeError
Source§impl Debug for TextRangeError
impl Debug for TextRangeError
Source§impl Display for TextRangeError
impl Display for TextRangeError
impl Eq for TextRangeError
Source§impl Error for TextRangeError
impl Error for TextRangeError
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 TextRangeError
impl PartialEq for TextRangeError
impl StructuralPartialEq for TextRangeError
Auto Trait Implementations§
impl Forget for TextRangeError
impl Freeze for TextRangeError
impl Move for TextRangeError
impl RefUnwindSafe for TextRangeError
impl Send for TextRangeError
impl Sync for TextRangeError
impl Unpin for TextRangeError
impl UnsafeUnpin for TextRangeError
impl UnwindSafe for TextRangeError
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