pub enum CompilerError {
Parser(Error),
Unsupported(String),
Custom(String),
}
Variants§
Implementations§
Source§impl CompilerError
impl CompilerError
pub fn is_unsupported<D>(error: &str, unsuppoted: D) -> Selfwhere
D: Debug,
pub fn are_unsupported(error: &str) -> Self
pub fn is_unsupported_feature(&self) -> bool
Trait Implementations§
Source§impl Debug for CompilerError
impl Debug for CompilerError
Source§impl Display for CompilerError
impl Display for CompilerError
Source§impl Error for CompilerError
impl Error for CompilerError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<Error> for CompilerError
impl From<Error> for CompilerError
Source§fn from(err: RessaError) -> CompilerError
fn from(err: RessaError) -> CompilerError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CompilerError
impl !RefUnwindSafe for CompilerError
impl !Send for CompilerError
impl !Sync for CompilerError
impl Unpin for CompilerError
impl !UnwindSafe for CompilerError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more