Struct nessa::compilation::NessaError
source · pub struct NessaError {
pub err_type: String,
pub message: String,
pub has_location: bool,
pub line: usize,
pub column: usize,
pub fragment: String,
pub suggestions: Vec<String>,
}Fields§
§err_type: String§message: String§has_location: bool§line: usize§column: usize§fragment: String§suggestions: Vec<String>Implementations§
source§impl NessaError
impl NessaError
pub fn syntax_error( message: String, line: usize, column: usize, fragment: String, suggestions: Vec<String> ) -> Self
pub fn compiler_error( message: String, location: &Location, suggestions: Vec<String> ) -> Self
pub fn execution_error(message: String) -> Self
pub fn module_error(message: String) -> Self
pub fn emit(&self) -> !
Trait Implementations§
source§impl Clone for NessaError
impl Clone for NessaError
source§fn clone(&self) -> NessaError
fn clone(&self) -> NessaError
Returns a copy 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 moresource§impl Debug for NessaError
impl Debug for NessaError
source§impl<'a> From<Err<VerboseError<LocatedSpan<&'a str>>>> for NessaError
impl<'a> From<Err<VerboseError<LocatedSpan<&'a str>>>> for NessaError
source§impl<'a> From<VerboseError<LocatedSpan<&'a str>>> for NessaError
impl<'a> From<VerboseError<LocatedSpan<&'a str>>> for NessaError
source§fn from(error: VerboseError<Span<'a>>) -> Self
fn from(error: VerboseError<Span<'a>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for NessaError
impl Send for NessaError
impl Sync for NessaError
impl Unpin for NessaError
impl UnwindSafe for NessaError
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