Struct erg_compiler::artifact::ErrorArtifact
source · pub struct ErrorArtifact {
pub errors: CompileErrors,
pub warns: CompileErrors,
}
Fields§
§errors: CompileErrors
§warns: CompileErrors
Implementations§
source§impl ErrorArtifact
impl ErrorArtifact
pub const fn new(errors: CompileErrors, warns: CompileErrors) -> Self
pub fn clear(&mut self)
Trait Implementations§
source§impl Debug for ErrorArtifact
impl Debug for ErrorArtifact
source§impl Display for ErrorArtifact
impl Display for ErrorArtifact
source§impl Error for ErrorArtifact
impl Error for ErrorArtifact
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<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<IncompleteArtifact> for ErrorArtifact
impl From<IncompleteArtifact> for ErrorArtifact
source§fn from(artifact: IncompleteArtifact) -> Self
fn from(artifact: IncompleteArtifact) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for ErrorArtifact
impl Send for ErrorArtifact
impl Sync for ErrorArtifact
impl Unpin for ErrorArtifact
impl UnwindSafe for ErrorArtifact
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