pub struct RynaError {
pub err_type: String,
pub message: String,
pub has_location: bool,
pub line: usize,
pub column: usize,
pub module: Arc<String>,
pub fragment: String,
pub suggestions: Vec<String>,
}Fields§
§err_type: String§message: String§has_location: bool§line: usize§column: usize§module: Arc<String>§fragment: String§suggestions: Vec<String>Implementations§
Source§impl RynaError
impl RynaError
pub fn in_module(self, module: Arc<String>) -> Self
pub fn syntax_error( message: String, line: usize, column: usize, module: Arc<String>, 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<'a> From<Err<VerboseError<LocatedSpan<&'a str>>>> for RynaError
impl<'a> From<Err<VerboseError<LocatedSpan<&'a str>>>> for RynaError
Source§impl<'a> From<VerboseError<LocatedSpan<&'a str>>> for RynaError
impl<'a> From<VerboseError<LocatedSpan<&'a str>>> for RynaError
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 Freeze for RynaError
impl RefUnwindSafe for RynaError
impl Send for RynaError
impl Sync for RynaError
impl Unpin for RynaError
impl UnwindSafe for RynaError
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