pub enum EntityKind {
Account,
Commodity,
Transaction,
Split,
Tag,
Price,
SshKey,
Condition,
}Expand description
Kind tag for one server-entity wasm struct. Each variant maps to a
concrete $<kind> GC struct registered in
CompileContext::new_skeleton, plus a set of typed field accessors
in the native registry. Adding an entity adds one variant here +
one row in the nomi_entity! macro invocation; the compiler and
host-side allocators pick up the rest by expansion.
Variants§
Account
Commodity
Transaction
Split
Tag
Price
SshKey
Condition
Error condition raised by (error 'code "msg") and caught by
(handler-case). Maps to the $nomi_condition struct registered
for exception support; the clause variable e binds at this kind so
(error-code e) / (error-message e) type-check.
Implementations§
Source§impl EntityKind
impl EntityKind
Sourcepub const ALL: [EntityKind; 8]
pub const ALL: [EntityKind; 8]
Every kind, in wire order: a kind’s debug-value tag carries its index
here (wire_code), so the guest serializer and the host decoder agree
through this one table.
Sourcepub fn from_wire_code(code: i64) -> Option<Self>
pub fn from_wire_code(code: i64) -> Option<Self>
The kind at code in Self::ALL, if any.
Trait Implementations§
Source§impl Clone for EntityKind
impl Clone for EntityKind
impl Copy for EntityKind
Source§impl Debug for EntityKind
impl Debug for EntityKind
Source§impl Display for EntityKind
impl Display for EntityKind
impl Eq for EntityKind
Source§impl Hash for EntityKind
impl Hash for EntityKind
Source§impl Ord for EntityKind
impl Ord for EntityKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for EntityKind
impl PartialEq for EntityKind
Source§impl PartialOrd for EntityKind
impl PartialOrd for EntityKind
impl StructuralPartialEq for EntityKind
Auto Trait Implementations§
impl Freeze for EntityKind
impl RefUnwindSafe for EntityKind
impl Send for EntityKind
impl Sync for EntityKind
impl Unpin for EntityKind
impl UnsafeUnpin for EntityKind
impl UnwindSafe for EntityKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.