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 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?