pub struct CompileError<'src> {
pub token: Token<'src>,
pub kind: Box<CompileErrorKind<'src>>,
}
Fieldsยง
ยงtoken: Token<'src>
ยงkind: Box<CompileErrorKind<'src>>
Implementationsยง
Sourceยงimpl<'src> CompileError<'src>
impl<'src> CompileError<'src>
pub fn context(&self) -> Token<'src>
pub fn new( token: Token<'src>, kind: CompileErrorKind<'src>, ) -> CompileError<'src>
Trait Implementationsยง
Sourceยงimpl<'src> Debug for CompileError<'src>
impl<'src> Debug for CompileError<'src>
Sourceยงimpl Display for CompileError<'_>
impl Display for CompileError<'_>
Sourceยงimpl<'src> From<CompileError<'src>> for Error<'src>
impl<'src> From<CompileError<'src>> for Error<'src>
Sourceยงfn from(compile_error: CompileError<'src>) -> Self
fn from(compile_error: CompileError<'src>) -> Self
Converts to this type from the input type.
Sourceยงimpl<'src> PartialEq for CompileError<'src>
impl<'src> PartialEq for CompileError<'src>
impl<'src> StructuralPartialEq for CompileError<'src>
Auto Trait Implementationsยง
impl<'src> Freeze for CompileError<'src>
impl<'src> RefUnwindSafe for CompileError<'src>
impl<'src> Send for CompileError<'src>
impl<'src> Sync for CompileError<'src>
impl<'src> Unpin for CompileError<'src>
impl<'src> UnwindSafe for CompileError<'src>
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