pub struct NativesCostTable {Show 53 fields
pub address_from_bytes_cost_params: AddressFromBytesCostParams,
pub address_to_u256_cost_params: AddressToU256CostParams,
pub address_from_u256_cost_params: AddressFromU256CostParams,
pub config_read_setting_impl_cost_params: ConfigReadSettingImplCostParams,
pub dynamic_field_hash_type_and_key_cost_params: DynamicFieldHashTypeAndKeyCostParams,
pub dynamic_field_add_child_object_cost_params: DynamicFieldAddChildObjectCostParams,
pub dynamic_field_borrow_child_object_cost_params: DynamicFieldBorrowChildObjectCostParams,
pub dynamic_field_remove_child_object_cost_params: DynamicFieldRemoveChildObjectCostParams,
pub dynamic_field_has_child_object_cost_params: DynamicFieldHasChildObjectCostParams,
pub dynamic_field_has_child_object_with_ty_cost_params: DynamicFieldHasChildObjectWithTyCostParams,
pub event_emit_cost_params: EventEmitCostParams,
pub borrow_uid_cost_params: BorrowUidCostParams,
pub delete_impl_cost_params: DeleteImplCostParams,
pub record_new_id_cost_params: RecordNewIdCostParams,
pub transfer_transfer_internal_cost_params: TransferInternalCostParams,
pub transfer_party_transfer_internal_cost_params: PartyTransferInternalCostParams,
pub transfer_freeze_object_cost_params: TransferFreezeObjectCostParams,
pub transfer_share_object_cost_params: TransferShareObjectCostParams,
pub tx_context_derive_id_cost_params: TxContextDeriveIdCostParams,
pub tx_context_fresh_id_cost_params: TxContextFreshIdCostParams,
pub tx_context_sender_cost_params: TxContextSenderCostParams,
pub tx_context_epoch_cost_params: TxContextEpochCostParams,
pub tx_context_epoch_timestamp_ms_cost_params: TxContextEpochTimestampMsCostParams,
pub tx_context_sponsor_cost_params: TxContextSponsorCostParams,
pub tx_context_rgp_cost_params: TxContextRGPCostParams,
pub tx_context_gas_price_cost_params: TxContextGasPriceCostParams,
pub tx_context_gas_budget_cost_params: TxContextGasBudgetCostParams,
pub tx_context_ids_created_cost_params: TxContextIdsCreatedCostParams,
pub tx_context_replace_cost_params: TxContextReplaceCostParams,
pub type_is_one_time_witness_cost_params: TypesIsOneTimeWitnessCostParams,
pub validator_validate_metadata_bcs_cost_params: ValidatorValidateMetadataBcsCostParams,
pub crypto_invalid_arguments_cost: InternalGas,
pub bls12381_bls12381_min_sig_verify_cost_params: Bls12381Bls12381MinSigVerifyCostParams,
pub bls12381_bls12381_min_pk_verify_cost_params: Bls12381Bls12381MinPkVerifyCostParams,
pub ecdsa_k1_ecrecover_cost_params: EcdsaK1EcrecoverCostParams,
pub ecdsa_k1_decompress_pubkey_cost_params: EcdsaK1DecompressPubkeyCostParams,
pub ecdsa_k1_secp256k1_verify_cost_params: EcdsaK1Secp256k1VerifyCostParams,
pub ecdsa_r1_ecrecover_cost_params: EcdsaR1EcrecoverCostParams,
pub ecdsa_r1_secp256_r1_verify_cost_params: EcdsaR1Secp256R1VerifyCostParams,
pub ecvrf_ecvrf_verify_cost_params: EcvrfEcvrfVerifyCostParams,
pub ed25519_verify_cost_params: Ed25519VerifyCostParams,
pub groth16_prepare_verifying_key_cost_params: Groth16PrepareVerifyingKeyCostParams,
pub groth16_verify_groth16_proof_internal_cost_params: Groth16VerifyGroth16ProofInternalCostParams,
pub hash_blake2b256_cost_params: HashBlake2b256CostParams,
pub hash_keccak256_cost_params: HashKeccak256CostParams,
pub poseidon_bn254_cost_params: PoseidonBN254CostParams,
pub hmac_hmac_sha3_256_cost_params: HmacHmacSha3256CostParams,
pub group_ops_cost_params: GroupOpsCostParams,
pub vdf_cost_params: VDFCostParams,
pub check_zklogin_id_cost_params: CheckZkloginIdCostParams,
pub check_zklogin_issuer_cost_params: CheckZkloginIssuerCostParams,
pub transfer_receive_object_internal_cost_params: TransferReceiveObjectInternalCostParams,
pub nitro_attestation_cost_params: NitroAttestationCostParams,
}Fields§
§address_from_bytes_cost_params: AddressFromBytesCostParams§address_to_u256_cost_params: AddressToU256CostParams§address_from_u256_cost_params: AddressFromU256CostParams§config_read_setting_impl_cost_params: ConfigReadSettingImplCostParams§dynamic_field_hash_type_and_key_cost_params: DynamicFieldHashTypeAndKeyCostParams§dynamic_field_add_child_object_cost_params: DynamicFieldAddChildObjectCostParams§dynamic_field_borrow_child_object_cost_params: DynamicFieldBorrowChildObjectCostParams§dynamic_field_remove_child_object_cost_params: DynamicFieldRemoveChildObjectCostParams§dynamic_field_has_child_object_cost_params: DynamicFieldHasChildObjectCostParams§dynamic_field_has_child_object_with_ty_cost_params: DynamicFieldHasChildObjectWithTyCostParams§event_emit_cost_params: EventEmitCostParams§borrow_uid_cost_params: BorrowUidCostParams§delete_impl_cost_params: DeleteImplCostParams§record_new_id_cost_params: RecordNewIdCostParams§transfer_transfer_internal_cost_params: TransferInternalCostParams§transfer_party_transfer_internal_cost_params: PartyTransferInternalCostParams§transfer_freeze_object_cost_params: TransferFreezeObjectCostParams§tx_context_derive_id_cost_params: TxContextDeriveIdCostParams§tx_context_fresh_id_cost_params: TxContextFreshIdCostParams§tx_context_sender_cost_params: TxContextSenderCostParams§tx_context_epoch_cost_params: TxContextEpochCostParams§tx_context_epoch_timestamp_ms_cost_params: TxContextEpochTimestampMsCostParams§tx_context_sponsor_cost_params: TxContextSponsorCostParams§tx_context_rgp_cost_params: TxContextRGPCostParams§tx_context_gas_price_cost_params: TxContextGasPriceCostParams§tx_context_gas_budget_cost_params: TxContextGasBudgetCostParams§tx_context_ids_created_cost_params: TxContextIdsCreatedCostParams§tx_context_replace_cost_params: TxContextReplaceCostParams§type_is_one_time_witness_cost_params: TypesIsOneTimeWitnessCostParams§validator_validate_metadata_bcs_cost_params: ValidatorValidateMetadataBcsCostParams§crypto_invalid_arguments_cost: InternalGas§bls12381_bls12381_min_sig_verify_cost_params: Bls12381Bls12381MinSigVerifyCostParams§bls12381_bls12381_min_pk_verify_cost_params: Bls12381Bls12381MinPkVerifyCostParams§ecdsa_k1_ecrecover_cost_params: EcdsaK1EcrecoverCostParams§ecdsa_k1_decompress_pubkey_cost_params: EcdsaK1DecompressPubkeyCostParams§ecdsa_k1_secp256k1_verify_cost_params: EcdsaK1Secp256k1VerifyCostParams§ecdsa_r1_ecrecover_cost_params: EcdsaR1EcrecoverCostParams§ecdsa_r1_secp256_r1_verify_cost_params: EcdsaR1Secp256R1VerifyCostParams§ecvrf_ecvrf_verify_cost_params: EcvrfEcvrfVerifyCostParams§ed25519_verify_cost_params: Ed25519VerifyCostParams§groth16_prepare_verifying_key_cost_params: Groth16PrepareVerifyingKeyCostParams§groth16_verify_groth16_proof_internal_cost_params: Groth16VerifyGroth16ProofInternalCostParams§hash_blake2b256_cost_params: HashBlake2b256CostParams§hash_keccak256_cost_params: HashKeccak256CostParams§poseidon_bn254_cost_params: PoseidonBN254CostParams§hmac_hmac_sha3_256_cost_params: HmacHmacSha3256CostParams§group_ops_cost_params: GroupOpsCostParams§vdf_cost_params: VDFCostParams§check_zklogin_id_cost_params: CheckZkloginIdCostParams§check_zklogin_issuer_cost_params: CheckZkloginIssuerCostParams§transfer_receive_object_internal_cost_params: TransferReceiveObjectInternalCostParams§nitro_attestation_cost_params: NitroAttestationCostParamsImplementations§
Source§impl NativesCostTable
impl NativesCostTable
pub fn from_protocol_config( protocol_config: &ProtocolConfig, ) -> NativesCostTable
Trait Implementations§
impl NativeExtensionMarker<'_> for NativesCostTable
impl<'a> TidAble<'a> for NativesCostTable
Auto Trait Implementations§
impl Freeze for NativesCostTable
impl RefUnwindSafe for NativesCostTable
impl Send for NativesCostTable
impl Sync for NativesCostTable
impl Unpin for NativesCostTable
impl UnwindSafe for NativesCostTable
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read more§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
Causes
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
Causes
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
Causes
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
Causes
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
Causes
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
Causes
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
Formats each item in a sequence. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a Request§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self, then passes self.deref() into the pipe function.§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref() only in debug builds, and is erased in release
builds.§impl<'a, X> TidExt<'a> for Xwhere
X: Tid<'a> + ?Sized,
impl<'a, X> TidExt<'a> for Xwhere
X: Tid<'a> + ?Sized,
§fn is<T>(&self) -> boolwhere
T: Tid<'a>,
fn is<T>(&self) -> boolwhere
T: Tid<'a>,
Returns true if type behind self is equal to the type of T.
§fn downcast_ref<'b, T>(&'b self) -> Option<&'b T>where
T: Tid<'a>,
fn downcast_ref<'b, T>(&'b self) -> Option<&'b T>where
T: Tid<'a>,
Attempts to downcast self to
T behind reference§fn downcast_mut<'b, T>(&'b mut self) -> Option<&'b mut T>where
T: Tid<'a>,
fn downcast_mut<'b, T>(&'b mut self) -> Option<&'b mut T>where
T: Tid<'a>,
Attempts to downcast self to
T behind mutable reference§fn downcast_rc<T>(self: Rc<X>) -> Result<Rc<T>, Rc<X>>where
T: Tid<'a>,
fn downcast_rc<T>(self: Rc<X>) -> Result<Rc<T>, Rc<X>>where
T: Tid<'a>,
Attempts to downcast self to
T behind Rc pointer