pub enum TranslatorError {
Io(Error),
SourceNotFound(SourceId),
InvalidAstData(String),
MissingAstData(String),
DecodeError {
format: String,
message: String,
},
SourceMap(Error),
Utf8(FromUtf8Error),
Generation(String),
}
Expand description
Unified errors type for the rsx-compiler library.
Variants§
Io(Error)
SourceNotFound(SourceId)
InvalidAstData(String)
MissingAstData(String)
DecodeError
SourceMap(Error)
Utf8(FromUtf8Error)
Generation(String)
Trait Implementations§
Source§impl Debug for TranslatorError
impl Debug for TranslatorError
Source§impl Display for TranslatorError
impl Display for TranslatorError
Source§impl Error for TranslatorError
impl Error for TranslatorError
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for TranslatorError
impl From<Error> for TranslatorError
Source§impl From<Error> for TranslatorError
impl From<Error> for TranslatorError
Source§impl From<Error> for TranslatorError
impl From<Error> for TranslatorError
Source§impl From<FromUtf8Error> for TranslatorError
impl From<FromUtf8Error> for TranslatorError
Source§fn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TranslatorError
impl !RefUnwindSafe for TranslatorError
impl Send for TranslatorError
impl Sync for TranslatorError
impl Unpin for TranslatorError
impl !UnwindSafe for TranslatorError
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