Struct erg_parser::error::ParserRunnerError
source · pub struct ParserRunnerError {
pub core: ErrorCore,
pub input: Input,
}
Fields§
§core: ErrorCore
§input: Input
Implementations§
Trait Implementations§
source§impl Debug for ParserRunnerError
impl Debug for ParserRunnerError
source§impl Display for ParserRunnerError
impl Display for ParserRunnerError
source§impl Error for ParserRunnerError
impl Error for ParserRunnerError
1.30.0 · 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()
source§impl ErrorDisplay for ParserRunnerError
impl ErrorDisplay for ParserRunnerError
fn core(&self) -> &ErrorCore
fn input(&self) -> &Input
source§fn caused_by(&self) -> &str
fn caused_by(&self) -> &str
The block name the error caused.
This will be None if the error occurred before semantic analysis.
fn write_to_stderr(&self)
fn write_to<W>(&self, w: &mut W)where
W: Write,
fn show(&self) -> String
source§impl From<ParserRunnerError> for LexError
impl From<ParserRunnerError> for LexError
source§fn from(err: ParserRunnerError) -> Self
fn from(err: ParserRunnerError) -> Self
Converts to this type from the input type.
source§impl FromIterator<ParserRunnerError> for ParserRunnerErrors
impl FromIterator<ParserRunnerError> for ParserRunnerErrors
source§fn from_iter<I: IntoIterator<Item = ParserRunnerError>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = ParserRunnerError>>(iter: I) -> Self
Creates a value from an iterator. Read more
source§impl Stream<ParserRunnerError> for ParserRunnerErrors
impl Stream<ParserRunnerError> for ParserRunnerErrors
fn payload(self) -> Vec<ParserRunnerError>
fn ref_payload(&self) -> &Vec<ParserRunnerError>
fn ref_mut_payload(&mut self) -> &mut Vec<ParserRunnerError>
fn clear(&mut self)
fn len(&self) -> usize
fn size(&self) -> usize
fn is_empty(&self) -> bool
fn insert(&mut self, idx: usize, elem: T)
fn remove(&mut self, idx: usize) -> T
fn push(&mut self, elem: T)
fn append<S>(&mut self, s: &mut S)where
S: Stream<T>,
fn pop(&mut self) -> Option<T>
fn lpop(&mut self) -> Option<T>
fn get(&self, idx: usize) -> Option<&T>
fn get_mut(&mut self, idx: usize) -> Option<&mut T>
fn first(&self) -> Option<&T>
fn first_mut(&mut self) -> Option<&mut T>
fn last(&self) -> Option<&T>
fn last_mut(&mut self) -> Option<&mut T>
fn iter(&self) -> Iter<'_, T>
fn iter_mut(&mut self) -> IterMut<'_, T>
fn take_all(&mut self) -> Vec<T>
fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = T>,
fn split_off(&mut self, at: usize) -> Vec<T>
source§fn retain(&mut self, f: impl FnMut(&T) -> bool)
fn retain(&mut self, f: impl FnMut(&T) -> bool)
Remove all elements that don’t satisfy the predicate.
fn concat(self, other: Self) -> Self
Auto Trait Implementations§
impl Freeze for ParserRunnerError
impl RefUnwindSafe for ParserRunnerError
impl Send for ParserRunnerError
impl Sync for ParserRunnerError
impl Unpin for ParserRunnerError
impl UnwindSafe for ParserRunnerError
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