pub struct DeweyError {
pub pos: usize,
pub msg: &'static str,
}Expand description
A Dewey pattern parsing error.
Fields§
§pos: usizeThe approximate character index of where the error occurred.
msg: &'static strA message describing the error.
Trait Implementations§
source§impl Debug for DeweyError
impl Debug for DeweyError
source§impl Display for DeweyError
impl Display for DeweyError
source§impl Error for DeweyError
impl Error for DeweyError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
source§impl From<DeweyError> for PatternError
impl From<DeweyError> for PatternError
source§fn from(source: DeweyError) -> Self
fn from(source: DeweyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DeweyError
impl RefUnwindSafe for DeweyError
impl Send for DeweyError
impl Sync for DeweyError
impl Unpin for DeweyError
impl UnwindSafe for DeweyError
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