pub enum SlotKind {
Int,
Bool,
Float,
CharText,
Word32,
Word64,
}Expand description
The runtime kind a native frame slot carries: entry guards check the VM register’s discriminant against it and copy the raw representation in (f64 travels as bits); write-back re-boxes by it.
Variants§
Int
Bool
Float
CharText
A chr(code) result carried as a (guaranteed-valid) Unicode scalar code point; write-back re-boxes
it to a 1-char Text. Valid ONLY as a region OUTPUT (write-back) — the region gate rejects it as a
live-in guard input (a chr result never enters a region from the VM side).
Word32
A Word32/Word16 ring value carried UNBOXED as a zero-extended masked i64 (0 ≤ slot < 2³²).
UNLIKE CharText, this is BIDIRECTIONAL: the entry guard verifies the VM register is a
RuntimeValue::Word(W32) and copies its masked value in, and write-back re-boxes the low 32 bits to
RuntimeValue::Word(W32(...)). This is what lets a loop-carried Word (a sha256/MD5 hash word
h0..h7) tier as region state.
Word64
A Word64 ring value carried UNBOXED as the full 64-bit pattern in the i64 slot. Bidirectional:
the entry guard verifies a RuntimeValue::Word(W64) and copies its bits in; write-back re-boxes to
RuntimeValue::Word(W64(...)).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SlotKind
impl<'de> Deserialize<'de> for SlotKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Copy for SlotKind
impl Eq for SlotKind
impl StructuralPartialEq for SlotKind
Auto Trait Implementations§
impl Freeze for SlotKind
impl RefUnwindSafe for SlotKind
impl Send for SlotKind
impl Sync for SlotKind
impl Unpin for SlotKind
impl UnsafeUnpin for SlotKind
impl UnwindSafe for SlotKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§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
§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.