Struct erg_compiler::error::CompileErrors
source · pub struct CompileErrors(/* private fields */);
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>
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)>
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 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 ErrorArtifact
impl From<CompileErrors> for ErrorArtifact
source§fn from(errors: CompileErrors) -> Self
fn from(errors: CompileErrors) -> 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 ParserRunnerErrors
impl From<CompileErrors> for ParserRunnerErrors
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<Error> for CompileErrors
impl From<Error> for CompileErrors
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>> for CompileErrors
impl From<Vec<CompileError>> 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
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>
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 CompileErrors
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)