pub enum CompilerSessionError {
LangSpec(LangSpecError),
Preprocess(PreprocessError),
Source(SourceError),
Compile(CompileError),
}Expand description
Errors returned while using one reusable compiler session.
Variants§
LangSpec(LangSpecError)
Loading or parsing the builtin language specification failed.
Preprocess(PreprocessError)
Loading and preprocessing the requested source bundle failed.
Source(SourceError)
Loading the requested source bundle failed.
Compile(CompileError)
Parsing or code generation failed.
Trait Implementations§
Source§impl Debug for CompilerSessionError
impl Debug for CompilerSessionError
Source§impl Display for CompilerSessionError
impl Display for CompilerSessionError
Source§impl Error for CompilerSessionError
impl Error for CompilerSessionError
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 CompilerSessionError
impl From<CompileError> for CompilerSessionError
Source§fn from(value: CompileError) -> Self
fn from(value: CompileError) -> Self
Converts to this type from the input type.
Source§impl From<CompilerSessionError> for CompilerDriverError
impl From<CompilerSessionError> for CompilerDriverError
Source§fn from(value: CompilerSessionError) -> Self
fn from(value: CompilerSessionError) -> Self
Converts to this type from the input type.
Source§impl From<LangSpecError> for CompilerSessionError
impl From<LangSpecError> for CompilerSessionError
Source§fn from(value: LangSpecError) -> Self
fn from(value: LangSpecError) -> Self
Converts to this type from the input type.
Source§impl From<PreprocessError> for CompilerSessionError
impl From<PreprocessError> for CompilerSessionError
Source§fn from(value: PreprocessError) -> Self
fn from(value: PreprocessError) -> Self
Converts to this type from the input type.
Source§impl From<SourceError> for CompilerSessionError
impl From<SourceError> for CompilerSessionError
Source§fn from(value: SourceError) -> Self
fn from(value: SourceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CompilerSessionError
impl RefUnwindSafe for CompilerSessionError
impl Send for CompilerSessionError
impl Sync for CompilerSessionError
impl Unpin for CompilerSessionError
impl UnsafeUnpin for CompilerSessionError
impl UnwindSafe for CompilerSessionError
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