#[repr(C)]pub enum ErrorModel {
Dynamic = 0,
Static = 1,
}Expand description
Error model for a language runtime.
Describes whether a runtime’s foreign function calls can fail at runtime due to the inherent dynamism of the language.
Variants§
Dynamic = 0
Runtime errors are possible on every call (Python, JS, Ruby).
Foreign function return types are automatically wrapped in Result<T>.
Static = 1
The language has compile-time type safety. Foreign functions return
T directly; runtime errors are not expected under normal operation.
Trait Implementations§
Source§impl Clone for ErrorModel
impl Clone for ErrorModel
Source§fn clone(&self) -> ErrorModel
fn clone(&self) -> ErrorModel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ErrorModel
impl Debug for ErrorModel
Source§impl PartialEq for ErrorModel
impl PartialEq for ErrorModel
impl Copy for ErrorModel
impl Eq for ErrorModel
impl StructuralPartialEq for ErrorModel
Auto Trait Implementations§
impl Freeze for ErrorModel
impl RefUnwindSafe for ErrorModel
impl Send for ErrorModel
impl Sync for ErrorModel
impl Unpin for ErrorModel
impl UnsafeUnpin for ErrorModel
impl UnwindSafe for ErrorModel
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