pub enum SfcsCompilerError {
InvalidSource(String),
Sfcs(SfcsError),
Vm(SfcsVmError),
Memory(MemoryError),
}Expand description
Errors returned by the Rust-subset compiler.
Variants§
InvalidSource(String)
Source cannot be compiled by this profile.
Sfcs(SfcsError)
SFCS graph construction failed.
Vm(SfcsVmError)
VM program construction failed.
Memory(MemoryError)
Memory semantic packet digest failed.
Trait Implementations§
Source§impl Debug for SfcsCompilerError
impl Debug for SfcsCompilerError
Source§impl Display for SfcsCompilerError
impl Display for SfcsCompilerError
Source§impl Error for SfcsCompilerError
impl Error for SfcsCompilerError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + '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<MemoryError> for SfcsCompilerError
impl From<MemoryError> for SfcsCompilerError
Source§fn from(error: MemoryError) -> Self
fn from(error: MemoryError) -> Self
Converts to this type from the input type.
Source§impl From<SfcsError> for SfcsCompilerError
impl From<SfcsError> for SfcsCompilerError
Source§impl From<SfcsVmError> for SfcsCompilerError
impl From<SfcsVmError> for SfcsCompilerError
Source§fn from(error: SfcsVmError) -> Self
fn from(error: SfcsVmError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SfcsCompilerError
impl !UnwindSafe for SfcsCompilerError
impl Freeze for SfcsCompilerError
impl Send for SfcsCompilerError
impl Sync for SfcsCompilerError
impl Unpin for SfcsCompilerError
impl UnsafeUnpin for SfcsCompilerError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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