Struct erg_parser::error::LexErrors
source · pub struct LexErrors(/* private fields */);
Implementations§
Trait Implementations§
source§impl Error for LexErrors
impl Error for LexErrors
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<A> From<LexErrors> for IncompleteArtifact<A, ParseErrors>
impl<A> From<LexErrors> for IncompleteArtifact<A, ParseErrors>
source§fn from(value: LexErrors) -> IncompleteArtifact<A, ParseErrors>
fn from(value: LexErrors) -> IncompleteArtifact<A, ParseErrors>
Converts to this type from the input type.
source§impl From<ParserRunnerErrors> for LexErrors
impl From<ParserRunnerErrors> for LexErrors
source§fn from(errs: ParserRunnerErrors) -> Self
fn from(errs: ParserRunnerErrors) -> Self
Converts to this type from the input type.
source§impl FromIterator<LexError> for LexErrors
impl FromIterator<LexError> for LexErrors
source§impl IntoIterator for LexErrors
impl IntoIterator for LexErrors
source§impl Stream<LexError> for LexErrors
impl Stream<LexError> for LexErrors
fn payload(self) -> Vec<LexError>
fn ref_payload(&self) -> &Vec<LexError>
fn ref_mut_payload(&mut self) -> &mut Vec<LexError>
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 LexErrors
impl RefUnwindSafe for LexErrors
impl Send for LexErrors
impl Sync for LexErrors
impl Unpin for LexErrors
impl UnwindSafe for LexErrors
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