Enum near_vm_logic::ExtCosts
source · [−]pub enum ExtCosts {
Show 53 variants
base,
contract_compile_base,
contract_compile_bytes,
read_memory_base,
read_memory_byte,
write_memory_base,
write_memory_byte,
read_register_base,
read_register_byte,
write_register_base,
write_register_byte,
utf8_decoding_base,
utf8_decoding_byte,
utf16_decoding_base,
utf16_decoding_byte,
sha256_base,
sha256_byte,
keccak256_base,
keccak256_byte,
keccak512_base,
keccak512_byte,
ripemd160_base,
ripemd160_block,
ecrecover_base,
log_base,
log_byte,
storage_write_base,
storage_write_key_byte,
storage_write_value_byte,
storage_write_evicted_byte,
storage_read_base,
storage_read_key_byte,
storage_read_value_byte,
storage_remove_base,
storage_remove_key_byte,
storage_remove_ret_value_byte,
storage_has_key_base,
storage_has_key_byte,
storage_iter_create_prefix_base,
storage_iter_create_prefix_byte,
storage_iter_create_range_base,
storage_iter_create_from_byte,
storage_iter_create_to_byte,
storage_iter_next_base,
storage_iter_next_key_byte,
storage_iter_next_value_byte,
touching_trie_node,
promise_and_base,
promise_and_per_promise,
promise_return,
validator_stake_base,
validator_total_stake_base,
__count,
}
Expand description
Strongly-typed representation of the fees for counting.
Variants
base
contract_compile_base
contract_compile_bytes
read_memory_base
read_memory_byte
write_memory_base
write_memory_byte
read_register_base
read_register_byte
write_register_base
write_register_byte
utf8_decoding_base
utf8_decoding_byte
utf16_decoding_base
utf16_decoding_byte
sha256_base
sha256_byte
keccak256_base
keccak256_byte
keccak512_base
keccak512_byte
ripemd160_base
ripemd160_block
ecrecover_base
log_base
log_byte
storage_write_base
storage_write_key_byte
storage_write_value_byte
storage_write_evicted_byte
storage_read_base
storage_read_key_byte
storage_read_value_byte
storage_remove_base
storage_remove_key_byte
storage_remove_ret_value_byte
storage_has_key_base
storage_has_key_byte
storage_iter_create_prefix_base
storage_iter_create_prefix_byte
storage_iter_create_range_base
storage_iter_create_from_byte
storage_iter_create_to_byte
storage_iter_next_base
storage_iter_next_key_byte
storage_iter_next_value_byte
touching_trie_node
promise_and_base
promise_and_per_promise
promise_return
validator_stake_base
validator_total_stake_base
__count
Implementations
Trait Implementations
sourceimpl Ord for ExtCosts
impl Ord for ExtCosts
sourceimpl PartialOrd<ExtCosts> for ExtCosts
impl PartialOrd<ExtCosts> for ExtCosts
sourcepub fn partial_cmp(&self, other: &ExtCosts) -> Option<Ordering>
pub fn partial_cmp(&self, other: &ExtCosts) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
impl Copy for ExtCosts
impl Eq for ExtCosts
impl StructuralEq for ExtCosts
impl StructuralPartialEq for ExtCosts
Auto Trait Implementations
impl RefUnwindSafe for ExtCosts
impl Send for ExtCosts
impl Sync for ExtCosts
impl Unpin for ExtCosts
impl UnwindSafe for ExtCosts
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more