pub struct QangCompilerError {
pub message: String,
pub span: SourceSpan,
pub kind: QangErrorKind,
pub source_map: Arc<SourceMap>,
}Fields§
§message: String§span: SourceSpan§kind: QangErrorKind§source_map: Arc<SourceMap>Implementations§
Source§impl QangCompilerError
impl QangCompilerError
pub fn new_syntax_error( message: String, span: SourceSpan, source_map: Arc<SourceMap>, ) -> Self
pub fn new_analysis_error( message: String, span: SourceSpan, source_map: Arc<SourceMap>, ) -> Self
pub fn new_assembler_error( message: String, span: SourceSpan, source_map: Arc<SourceMap>, ) -> Self
pub fn into_formatted(self) -> Self
pub fn into_short_formatted(self) -> Self
Trait Implementations§
Source§impl Clone for QangCompilerError
impl Clone for QangCompilerError
Source§impl Debug for QangCompilerError
impl Debug for QangCompilerError
Source§impl Display for QangCompilerError
impl Display for QangCompilerError
Source§impl Error for QangCompilerError
impl Error for QangCompilerError
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 PartialEq for QangCompilerError
impl PartialEq for QangCompilerError
impl StructuralPartialEq for QangCompilerError
Auto Trait Implementations§
impl Freeze for QangCompilerError
impl RefUnwindSafe for QangCompilerError
impl Send for QangCompilerError
impl Sync for QangCompilerError
impl Unpin for QangCompilerError
impl UnsafeUnpin for QangCompilerError
impl UnwindSafe for QangCompilerError
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