pub enum NativeTableError {
DuplicateName(String),
SlotOccupied {
index: u32,
name: String,
},
}Expand description
Host error while building a NativeTable (duplicate name or occupied slot).
Category A: the embedder misconfigured FFI. Never a panic — std_native_table
and host tables must surface this as Result.
Variants§
Trait Implementations§
Source§impl Clone for NativeTableError
impl Clone for NativeTableError
Source§fn clone(&self) -> NativeTableError
fn clone(&self) -> NativeTableError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NativeTableError
impl Debug for NativeTableError
Source§impl Display for NativeTableError
impl Display for NativeTableError
impl Eq for NativeTableError
Source§impl Error for NativeTableError
impl Error for NativeTableError
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 PartialEq for NativeTableError
impl PartialEq for NativeTableError
impl StructuralPartialEq for NativeTableError
Auto Trait Implementations§
impl Freeze for NativeTableError
impl RefUnwindSafe for NativeTableError
impl Send for NativeTableError
impl Sync for NativeTableError
impl Unpin for NativeTableError
impl UnsafeUnpin for NativeTableError
impl UnwindSafe for NativeTableError
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