pub struct DummyError;Expand description
A ZST that implements RowanNomError when details or context don’t matter
Trait Implementations§
Source§impl Clone for DummyError
impl Clone for DummyError
Source§fn clone(&self) -> DummyError
fn clone(&self) -> DummyError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DummyError
impl Debug for DummyError
Source§impl Default for DummyError
impl Default for DummyError
Source§fn default() -> DummyError
fn default() -> DummyError
Returns the “default value” for a type. Read more
Source§impl Display for DummyError
impl Display for DummyError
Source§impl Error for DummyError
impl Error for DummyError
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()
Source§impl<Lang: Language> RowanNomError<Lang> for DummyError
impl<Lang: Language> RowanNomError<Lang> for DummyError
Source§fn from_message(_message: &str) -> Self
fn from_message(_message: &str) -> Self
Generic error, should probably be ultimately removed
fn from_expected(_position: usize, _message: &str) -> Self
fn from_expected_eof(_range: Range<usize>) -> Self
Source§fn from_unexpected_eof(_position: usize) -> Self
fn from_unexpected_eof(_position: usize) -> Self
Creates error: Attempted to read a token when there are none remaining
fn from_unexpected_token( _span: Range<usize>, _expected: Lang::Kind, _found: Lang::Kind, ) -> Self
fn with_context(self, _ctx: &'static str) -> Self
impl Copy for DummyError
Auto Trait Implementations§
impl Freeze for DummyError
impl RefUnwindSafe for DummyError
impl Send for DummyError
impl Sync for DummyError
impl Unpin for DummyError
impl UnwindSafe for DummyError
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