pub enum NativeValueCraneliftError {
AbiInvalid(NativeAbiValidateError),
UnsupportedFunction {
function: String,
reason: &'static str,
},
UnsupportedStmt {
function: String,
kind: &'static str,
},
UnsupportedLiteral {
function: String,
literal: NativeLiteral,
},
MissingBlock {
function: String,
block: BlockId,
},
MissingValue {
function: String,
value: ValueId,
},
InvalidReturnArity {
function: String,
arity: usize,
},
Cranelift(String),
}Variants§
AbiInvalid(NativeAbiValidateError)
UnsupportedFunction
UnsupportedStmt
UnsupportedLiteral
MissingBlock
MissingValue
InvalidReturnArity
Cranelift(String)
Trait Implementations§
Source§impl Debug for NativeValueCraneliftError
impl Debug for NativeValueCraneliftError
Source§impl Display for NativeValueCraneliftError
impl Display for NativeValueCraneliftError
Source§impl Error for NativeValueCraneliftError
impl Error for NativeValueCraneliftError
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<NativeAbiValidateError> for NativeValueCraneliftError
impl From<NativeAbiValidateError> for NativeValueCraneliftError
Source§fn from(error: NativeAbiValidateError) -> Self
fn from(error: NativeAbiValidateError) -> Self
Converts to this type from the input type.
Source§impl From<NativeValueCraneliftError> for NativeValueCompareError
impl From<NativeValueCraneliftError> for NativeValueCompareError
Source§fn from(error: NativeValueCraneliftError) -> Self
fn from(error: NativeValueCraneliftError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NativeValueCraneliftError
impl RefUnwindSafe for NativeValueCraneliftError
impl Send for NativeValueCraneliftError
impl Sync for NativeValueCraneliftError
impl Unpin for NativeValueCraneliftError
impl UnsafeUnpin for NativeValueCraneliftError
impl UnwindSafe for NativeValueCraneliftError
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