pub enum TextError {
UnescapeError {
offset: usize,
chars: String,
},
}
Expand description
Error of text progress
Variants§
Implementations§
Source§impl TextError
impl TextError
Sourcepub fn unescape_error<T>(offset: usize, msg: impl Into<String>) -> Result<T>
pub fn unescape_error<T>(offset: usize, msg: impl Into<String>) -> Result<T>
Constructor of TextError::UnescapeError
Trait Implementations§
Source§impl Error for TextError
impl Error for TextError
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()
impl Eq for TextError
impl StructuralPartialEq for TextError
Auto Trait Implementations§
impl Freeze for TextError
impl RefUnwindSafe for TextError
impl Send for TextError
impl Sync for TextError
impl Unpin for TextError
impl UnwindSafe for TextError
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