Struct PatternError

struct PatternError { ... }

A pattern parsing error.

Fields

pos: usize

The approximate character index of where the error occurred.

msg: &'static str

A message describing the error.

Implementations

impl Debug for PatternError

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl Display for PatternError

fn fmt(self: &Self, f: &mut fmt::Formatter<'_>) -> fmt::Result

impl Error for PatternError

fn description(self: &Self) -> &str

impl Freeze for PatternError

impl RefUnwindSafe for PatternError

impl Send for PatternError

impl Sync for PatternError

impl Unpin for PatternError

impl UnwindSafe for PatternError

impl<T> Any for PatternError

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for PatternError

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for PatternError

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for PatternError

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToString for PatternError

fn to_string(self: &Self) -> String

impl<T, U> Into for PatternError

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for PatternError

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for PatternError

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>