Struct fm::FMatchError
source · pub struct FMatchError { /* private fields */ }
Expand description
An error indicating a failed match. The pattern and text are copied in so that the error isn’t tied to their lifetimes.
Implementations§
source§impl FMatchError
impl FMatchError
pub fn ptn_line_off(&self) -> usize
pub fn text_line_off(&self) -> usize
Trait Implementations§
source§impl Debug for FMatchError
impl Debug for FMatchError
A short error message. We don’t reuse the longer message from Display
as a Rust panic
uses Debug
and doesn’t interpret formatting characters when printing the panic message.
source§impl Display for FMatchError
impl Display for FMatchError
source§impl Error for FMatchError
impl Error for FMatchError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl Freeze for FMatchError
impl RefUnwindSafe for FMatchError
impl Send for FMatchError
impl Sync for FMatchError
impl Unpin for FMatchError
impl UnwindSafe for FMatchError
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