Struct erg_compiler::error::CompileErrors
source · pub struct CompileErrors(_);
Implementations§
source§impl CompileErrors
impl CompileErrors
pub const fn new(v: Vec<CompileError>) -> CompileErrors
pub const fn empty() -> CompileErrors
pub fn with_capacity(capacity: usize) -> CompileErrors
source§impl CompileErrors
impl CompileErrors
pub fn iter(&self) -> Iter<'_, CompileError>
pub fn iter_mut(&mut self) -> IterMut<'_, CompileError>
source§impl CompileErrors
impl CompileErrors
Trait Implementations§
source§impl Clone for CompileErrors
impl Clone for CompileErrors
source§fn clone(&self) -> CompileErrors
fn clone(&self) -> CompileErrors
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 CompileErrors
impl Debug for CompileErrors
source§impl Default for CompileErrors
impl Default for CompileErrors
source§fn default() -> CompileErrors
fn default() -> CompileErrors
Returns the “default value” for a type. Read more
source§impl Display for CompileErrors
impl Display for CompileErrors
source§impl Error for CompileErrors
impl Error for CompileErrors
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 From<CompileError> for CompileErrors
impl From<CompileError> for CompileErrors
source§fn from(err: CompileError) -> Self
fn from(err: CompileError) -> Self
Converts to this type from the input type.
source§impl From<CompileErrors> for ParseErrors
impl From<CompileErrors> for ParseErrors
source§fn from(err: CompileErrors) -> Self
fn from(err: CompileErrors) -> Self
Converts to this type from the input type.
source§impl From<CompileErrors> for Vec<CompileError>
impl From<CompileErrors> for Vec<CompileError>
source§fn from(item: CompileErrors) -> Vec<CompileError>
fn from(item: CompileErrors) -> Vec<CompileError>
Converts to this type from the input type.
source§impl From<ParserRunnerErrors> for CompileErrors
impl From<ParserRunnerErrors> for CompileErrors
source§fn from(err: ParserRunnerErrors) -> Self
fn from(err: ParserRunnerErrors) -> Self
Converts to this type from the input type.
source§impl From<Vec<CompileError, Global>> for CompileErrors
impl From<Vec<CompileError, Global>> for CompileErrors
source§fn from(errs: Vec<CompileError>) -> Self
fn from(errs: Vec<CompileError>) -> Self
Converts to this type from the input type.
source§impl FromIterator<CompileError> for CompileErrors
impl FromIterator<CompileError> for CompileErrors
source§fn from_iter<I: IntoIterator<Item = CompileError>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = CompileError>>(iter: I) -> Self
Creates a value from an iterator. Read more
source§impl Index<usize> for CompileErrors
impl Index<usize> for CompileErrors
source§impl IntoIterator for CompileErrors
impl IntoIterator for CompileErrors
§type Item = CompileError
type Item = CompileError
The type of the elements being iterated over.
§type IntoIter = IntoIter<<CompileErrors as IntoIterator>::Item, Global>
type IntoIter = IntoIter<<CompileErrors as IntoIterator>::Item, Global>
Which kind of iterator are we turning this into?
source§impl Stream<CompileError> for CompileErrors
impl Stream<CompileError> for CompileErrors
fn payload(self) -> Vec<CompileError>
fn ref_payload(&self) -> &Vec<CompileError>
fn ref_mut_payload(&mut self) -> &mut Vec<CompileError>
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>
Auto Trait Implementations§
impl RefUnwindSafe for CompileErrors
impl Send for CompileErrors
impl Sync for CompileErrors
impl Unpin for CompileErrors
impl UnwindSafe for CompileErrors
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