pub struct ParsingError { /* private fields */ }
Implementations§
Source§impl ParsingError
impl ParsingError
pub const fn new(inner: ParsingErrorInner) -> Self
pub const fn inner(&self) -> &ParsingErrorInner
pub fn into_inner(self) -> ParsingErrorInner
pub fn critical_message(&self) -> Option<&str>
pub const fn is_critical(&self) -> bool
pub fn criticalize(self, critical: impl Into<Cow<'static, str>>) -> Self
pub const fn atomic_error(&self) -> Option<&'static str>
pub const fn with_atomic_error(self, atomic_err: &'static str) -> Self
pub const fn expected_char(range: CodeRange, expected: char) -> ParsingError
pub const fn expected_str( range: CodeRange, expected: &'static str, ) -> ParsingError
pub const fn custom(range: CodeRange, message: &'static str) -> ParsingError
pub const fn just_break(loc: CodeLocation) -> ParsingError
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParsingError
impl RefUnwindSafe for ParsingError
impl Send for ParsingError
impl Sync for ParsingError
impl Unpin for ParsingError
impl UnwindSafe for ParsingError
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