pub struct CompilationError {
pub kind: CompilationErrorKind,
pub additional_message: Option<String>,
pub location: SourceLocation,
}
Fields§
§kind: CompilationErrorKind
§additional_message: Option<String>
§location: SourceLocation
Implementations§
Source§impl CompilationError
impl CompilationError
pub fn new(kind: CompilationErrorKind) -> Self
pub fn with_location(self, loc: SourceLocation) -> Self
pub fn with_additional_message(self, msg: String) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompilationError
impl RefUnwindSafe for CompilationError
impl Send for CompilationError
impl Sync for CompilationError
impl Unpin for CompilationError
impl UnwindSafe for CompilationError
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