pub enum HostFunctionV1 {
Common(CommonFunc),
Init(InitOnlyFunc),
Receive(ReceiveOnlyFunc),
}
Expand description
Host functions supported by V1 contracts.
Variants§
Common(CommonFunc)
Functions allowed both in init
and receive
functions.
Init(InitOnlyFunc)
Functions allowed only in init
methods.
Receive(ReceiveOnlyFunc)
Functions allowed only in receive
methods.
Trait Implementations§
source§impl Clone for HostFunctionV1
impl Clone for HostFunctionV1
source§fn clone(&self) -> HostFunctionV1
fn clone(&self) -> HostFunctionV1
Returns a copy 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 HostFunctionV1
impl Debug for HostFunctionV1
source§impl Display for HostFunctionV1
impl Display for HostFunctionV1
The Display
implementation renders the function in
the same way that it is expected to be named in the imports.
source§impl Ord for HostFunctionV1
impl Ord for HostFunctionV1
source§fn cmp(&self, other: &HostFunctionV1) -> Ordering
fn cmp(&self, other: &HostFunctionV1) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for HostFunctionV1
impl PartialEq for HostFunctionV1
source§fn eq(&self, other: &HostFunctionV1) -> bool
fn eq(&self, other: &HostFunctionV1) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for HostFunctionV1
impl PartialOrd for HostFunctionV1
source§fn partial_cmp(&self, other: &HostFunctionV1) -> Option<Ordering>
fn partial_cmp(&self, other: &HostFunctionV1) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for HostFunctionV1
impl Eq for HostFunctionV1
impl StructuralPartialEq for HostFunctionV1
Auto Trait Implementations§
impl Freeze for HostFunctionV1
impl RefUnwindSafe for HostFunctionV1
impl Send for HostFunctionV1
impl Sync for HostFunctionV1
impl Unpin for HostFunctionV1
impl UnwindSafe for HostFunctionV1
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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.