pub enum NativeCraneliftError {
Show 13 variants
AbiInvalid(NativeAbiValidateError),
UnsupportedSubset(NativeAbiSubsetError),
UnsupportedScalarLiteral {
function: String,
literal: NativeLiteral,
},
UnsupportedScalarPrimitive {
function: String,
op: PrimitiveOp,
},
UnsupportedStmt {
function: String,
kind: &'static str,
},
UnsupportedEnvironment {
function: String,
slots: usize,
},
UnsupportedClosureValue {
function: String,
value: ValueId,
},
UnsupportedDirectEnvironmentCall {
function: String,
target: String,
slots: usize,
},
MissingFunction {
name: String,
},
MissingBlock {
function: String,
block: BlockId,
},
MissingValue {
function: String,
value: ValueId,
},
InvalidReturnArity {
function: String,
arity: usize,
},
Cranelift(String),
}Variants§
AbiInvalid(NativeAbiValidateError)
UnsupportedSubset(NativeAbiSubsetError)
UnsupportedScalarLiteral
UnsupportedScalarPrimitive
UnsupportedStmt
UnsupportedEnvironment
UnsupportedClosureValue
UnsupportedDirectEnvironmentCall
MissingFunction
MissingBlock
MissingValue
InvalidReturnArity
Cranelift(String)
Trait Implementations§
Source§impl Debug for NativeCraneliftError
impl Debug for NativeCraneliftError
Source§impl Display for NativeCraneliftError
impl Display for NativeCraneliftError
Source§impl Error for NativeCraneliftError
impl Error for NativeCraneliftError
1.30.0 · 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<NativeAbiSubsetError> for NativeCraneliftError
impl From<NativeAbiSubsetError> for NativeCraneliftError
Source§fn from(error: NativeAbiSubsetError) -> Self
fn from(error: NativeAbiSubsetError) -> Self
Converts to this type from the input type.
Source§impl From<NativeAbiValidateError> for NativeCraneliftError
impl From<NativeAbiValidateError> for NativeCraneliftError
Source§fn from(error: NativeAbiValidateError) -> Self
fn from(error: NativeAbiValidateError) -> Self
Converts to this type from the input type.
Source§impl From<NativeCraneliftError> for NativeSourceCompareError
impl From<NativeCraneliftError> for NativeSourceCompareError
Source§fn from(error: NativeCraneliftError) -> Self
fn from(error: NativeCraneliftError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NativeCraneliftError
impl RefUnwindSafe for NativeCraneliftError
impl Send for NativeCraneliftError
impl Sync for NativeCraneliftError
impl Unpin for NativeCraneliftError
impl UnsafeUnpin for NativeCraneliftError
impl UnwindSafe for NativeCraneliftError
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