Struct erg_parser::error::ParserRunnerErrors
source · pub struct ParserRunnerErrors(/* private fields */);
Implementations§
source§impl ParserRunnerErrors
impl ParserRunnerErrors
pub const fn new(v: Vec<ParserRunnerError>) -> ParserRunnerErrors
pub const fn empty() -> ParserRunnerErrors
pub fn with_capacity(capacity: usize) -> ParserRunnerErrors
source§impl ParserRunnerErrors
impl ParserRunnerErrors
pub fn iter(&self) -> Iter<'_, ParserRunnerError>
pub fn iter_mut(&mut self) -> IterMut<'_, ParserRunnerError>
source§impl ParserRunnerErrors
impl ParserRunnerErrors
pub fn convert(input: &Input, errs: ParseErrors) -> Self
Trait Implementations§
source§impl Debug for ParserRunnerErrors
impl Debug for ParserRunnerErrors
source§impl Default for ParserRunnerErrors
impl Default for ParserRunnerErrors
source§fn default() -> ParserRunnerErrors
fn default() -> ParserRunnerErrors
Returns the “default value” for a type. Read more
source§impl Display for ParserRunnerErrors
impl Display for ParserRunnerErrors
source§impl Error for ParserRunnerErrors
impl Error for ParserRunnerErrors
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<ParserRunnerErrors> for IncompleteArtifact<A, ParserRunnerErrors>
impl<A> From<ParserRunnerErrors> for IncompleteArtifact<A, ParserRunnerErrors>
source§fn from(value: ParserRunnerErrors) -> IncompleteArtifact<A, ParserRunnerErrors>
fn from(value: ParserRunnerErrors) -> IncompleteArtifact<A, ParserRunnerErrors>
Converts to this type from the input type.
source§impl From<ParserRunnerErrors> for Vec<ParserRunnerError>
impl From<ParserRunnerErrors> for Vec<ParserRunnerError>
source§fn from(item: ParserRunnerErrors) -> Vec<ParserRunnerError>
fn from(item: ParserRunnerErrors) -> Vec<ParserRunnerError>
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 Index<usize> for ParserRunnerErrors
impl Index<usize> for ParserRunnerErrors
source§impl IntoIterator for ParserRunnerErrors
impl IntoIterator for ParserRunnerErrors
§type Item = ParserRunnerError
type Item = ParserRunnerError
The type of the elements being iterated over.
§type IntoIter = IntoIter<<ParserRunnerErrors as IntoIterator>::Item, Global>
type IntoIter = IntoIter<<ParserRunnerErrors as IntoIterator>::Item, Global>
Which kind of iterator are we turning this into?
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, Global>
fn extend<I>(&mut self, iter: I)where I: IntoIterator<Item = T>,
fn split_off(&mut self, at: usize) -> Vec<T, Global>
fn retain(&mut self, f: impl FnMut(&T) -> bool)
Auto Trait Implementations§
impl RefUnwindSafe for ParserRunnerErrors
impl Send for ParserRunnerErrors
impl Sync for ParserRunnerErrors
impl Unpin for ParserRunnerErrors
impl UnwindSafe for ParserRunnerErrors
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