pub enum HostCallVariant {
Typed {
data_args: u8,
},
TypedWithR8 {
data_args: u8,
},
GetR8,
}Expand description
Host call variant descriptor parsed from import name.
Variants§
Typed
host_call_N — exactly N data args (r7..r7+N-1), always returns r7.
TypedWithR8
host_call_Nb — exactly N data args, returns r7, also captures r8.
GetR8
host_call_r8 — no args, returns captured r8 from last host_call_*b.
Trait Implementations§
Source§impl Clone for HostCallVariant
impl Clone for HostCallVariant
Source§fn clone(&self) -> HostCallVariant
fn clone(&self) -> HostCallVariant
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 HostCallVariant
impl Debug for HostCallVariant
Source§impl PartialEq for HostCallVariant
impl PartialEq for HostCallVariant
impl Copy for HostCallVariant
impl Eq for HostCallVariant
impl StructuralPartialEq for HostCallVariant
Auto Trait Implementations§
impl Freeze for HostCallVariant
impl RefUnwindSafe for HostCallVariant
impl Send for HostCallVariant
impl Sync for HostCallVariant
impl Unpin for HostCallVariant
impl UnsafeUnpin for HostCallVariant
impl UnwindSafe for HostCallVariant
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.