#[repr(u8)]
pub enum NativeCostIndex {
Show 18 variants
SHA2_256,
SHA3_256,
ED25519_VERIFY,
ED25519_THRESHOLD_VERIFY,
BCS_TO_BYTES,
LENGTH,
EMPTY,
BORROW,
BORROW_MUT,
PUSH_BACK,
POP_BACK,
DESTROY_EMPTY,
SWAP,
ED25519_VALIDATE_KEY,
SIGNER_BORROW,
CREATE_SIGNER,
DESTROY_SIGNER,
EMIT_EVENT,
}
Variants§
SHA2_256
SHA3_256
ED25519_VERIFY
ED25519_THRESHOLD_VERIFY
BCS_TO_BYTES
LENGTH
EMPTY
BORROW
BORROW_MUT
PUSH_BACK
POP_BACK
DESTROY_EMPTY
SWAP
ED25519_VALIDATE_KEY
SIGNER_BORROW
CREATE_SIGNER
DESTROY_SIGNER
EMIT_EVENT
Trait Implementations§
source§impl Clone for NativeCostIndex
impl Clone for NativeCostIndex
source§fn clone(&self) -> NativeCostIndex
fn clone(&self) -> NativeCostIndex
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 NativeCostIndex
impl Debug for NativeCostIndex
source§impl Hash for NativeCostIndex
impl Hash for NativeCostIndex
source§impl Ord for NativeCostIndex
impl Ord for NativeCostIndex
source§fn cmp(&self, other: &NativeCostIndex) -> Ordering
fn cmp(&self, other: &NativeCostIndex) -> 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<NativeCostIndex> for NativeCostIndex
impl PartialEq<NativeCostIndex> for NativeCostIndex
source§fn eq(&self, other: &NativeCostIndex) -> bool
fn eq(&self, other: &NativeCostIndex) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<NativeCostIndex> for NativeCostIndex
impl PartialOrd<NativeCostIndex> for NativeCostIndex
source§fn partial_cmp(&self, other: &NativeCostIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &NativeCostIndex) -> 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 more