pub struct CompileError {
pub message: String,
pub span: Span,
}Expand description
A compile error to be emitted during code generation
Fields§
§message: StringThe error message
span: SpanThe span where the error occurred
Trait Implementations§
Source§impl Clone for CompileError
impl Clone for CompileError
Source§fn clone(&self) -> CompileError
fn clone(&self) -> CompileError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CompileError
impl RefUnwindSafe for CompileError
impl !Send for CompileError
impl !Sync for CompileError
impl Unpin for CompileError
impl UnwindSafe for CompileError
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