pub enum NativeTableError {
DuplicateName(String),
SlotOccupied {
index: u32,
name: String,
},
IndexTooLarge {
index: u32,
limit: u32,
},
}Expand description
Host error while building a NativeTable (duplicate name, occupied slot,
or an index past MAX_NATIVE_SLOTS).
Category A: the embedder misconfigured FFI. Never a panic — std_native_table
and host tables must surface this as Result.
Variants§
DuplicateName(String)
SlotOccupied
IndexTooLarge
register_at asked for an index at or past MAX_NATIVE_SLOTS.
Trait Implementations§
Source§impl Clone for NativeTableError
impl Clone for NativeTableError
Source§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 Forget for NativeTableError
impl Freeze for NativeTableError
impl Move 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.