Struct erg_compiler::error::CompileErrors

source ·
pub struct CompileErrors(/* private fields */);

Implementations§

source§

impl CompileErrors

source

pub const fn new(v: Vec<CompileError>) -> CompileErrors

source

pub const fn empty() -> CompileErrors

source

pub fn with_capacity(capacity: usize) -> CompileErrors

source§

impl CompileErrors

source

pub fn iter(&self) -> Iter<'_, CompileError>

source

pub fn iter_mut(&mut self) -> IterMut<'_, CompileError>

source§

impl CompileErrors

source

pub fn flush(&mut self) -> Self

source

pub fn take(&mut self) -> Self

source

pub fn len(&self) -> usize

source

pub fn is_empty(&self) -> bool

Trait Implementations§

source§

impl Clone for CompileErrors

source§

fn clone(&self) -> CompileErrors

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CompileErrors

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for CompileErrors

source§

fn default() -> CompileErrors

Returns the “default value” for a type. Read more
source§

impl Display for CompileErrors

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for CompileErrors

1.30.0 · source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<CompileError> for CompileErrors

source§

fn from(err: CompileError) -> Self

Converts to this type from the input type.
source§

impl From<CompileErrors> for ErrorArtifact

source§

fn from(errors: CompileErrors) -> Self

Converts to this type from the input type.
source§

impl From<CompileErrors> for ParseErrors

source§

fn from(err: CompileErrors) -> Self

Converts to this type from the input type.
source§

impl From<CompileErrors> for ParserRunnerErrors

source§

fn from(err: CompileErrors) -> Self

Converts to this type from the input type.
source§

impl From<CompileErrors> for Vec<CompileError>

source§

fn from(item: CompileErrors) -> Vec<CompileError>

Converts to this type from the input type.
source§

impl From<Error> for CompileErrors

source§

fn from(value: Error) -> Self

Converts to this type from the input type.
source§

impl From<ParserRunnerErrors> for CompileErrors

source§

fn from(err: ParserRunnerErrors) -> Self

Converts to this type from the input type.
source§

impl From<Vec<CompileError>> for CompileErrors

source§

fn from(errs: Vec<CompileError>) -> Self

Converts to this type from the input type.
source§

impl FromIterator<CompileError> for CompileErrors

source§

fn from_iter<I: IntoIterator<Item = CompileError>>(iter: I) -> Self

Creates a value from an iterator. Read more
source§

impl Index<usize> for CompileErrors

§

type Output = CompileError

The returned type after indexing.
source§

fn index(&self, idx: usize) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
source§

impl IntoIterator for CompileErrors

§

type Item = CompileError

The type of the elements being iterated over.
§

type IntoIter = IntoIter<<CompileErrors as IntoIterator>::Item>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl MultiErrorDisplay<CompileError> for CompileErrors

source§

fn write_all_stderr(&self)

source§

fn write_all_to(&self, w: &mut impl Write)

source§

fn fmt_all(&self, f: &mut Formatter<'_>) -> Result<(), Error>

source§

impl Stream<CompileError> for CompileErrors

source§

fn payload(self) -> Vec<CompileError>

source§

fn ref_payload(&self) -> &Vec<CompileError>

source§

fn ref_mut_payload(&mut self) -> &mut Vec<CompileError>

source§

fn clear(&mut self)

source§

fn len(&self) -> usize

source§

fn size(&self) -> usize

source§

fn is_empty(&self) -> bool

source§

fn insert(&mut self, idx: usize, elem: T)

source§

fn remove(&mut self, idx: usize) -> T

source§

fn push(&mut self, elem: T)

source§

fn append<S>(&mut self, s: &mut S)
where S: Stream<T>,

source§

fn pop(&mut self) -> Option<T>

source§

fn lpop(&mut self) -> Option<T>

source§

fn get(&self, idx: usize) -> Option<&T>

source§

fn get_mut(&mut self, idx: usize) -> Option<&mut T>

source§

fn first(&self) -> Option<&T>

source§

fn first_mut(&mut self) -> Option<&mut T>

source§

fn last(&self) -> Option<&T>

source§

fn last_mut(&mut self) -> Option<&mut T>

source§

fn iter(&self) -> Iter<'_, T>

source§

fn iter_mut(&mut self) -> IterMut<'_, T>

source§

fn take_all(&mut self) -> Vec<T>

source§

fn extend<I>(&mut self, iter: I)
where I: IntoIterator<Item = T>,

source§

fn split_off(&mut self, at: usize) -> Vec<T>

source§

fn retain(&mut self, f: impl FnMut(&T) -> bool)

Remove all elements that don’t satisfy the predicate.
source§

fn concat(self, other: Self) -> Self

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.