pub struct BuiltinFunctionContainer;
Expand description
Container for builtin function logic.
Currently has no data, but could conceivably be configurable in the future.
Implementations§
Source§impl BuiltinFunctionContainer
impl BuiltinFunctionContainer
Sourcepub fn execute_builtin_function_or_else<F, Else>(
&self,
vm: &BlockchainVMRef,
tx_input: TxInput,
tx_cache: TxCache,
f: F,
or_else: Else,
) -> (TxResult, BlockchainUpdate)
pub fn execute_builtin_function_or_else<F, Else>( &self, vm: &BlockchainVMRef, tx_input: TxInput, tx_cache: TxCache, f: F, or_else: Else, ) -> (TxResult, BlockchainUpdate)
If the call points to a builtin function, it executes it, otherwise calls the or_else
closure.
It also checks that the appropriate roles are set, where applicable.
Sourcepub fn extract_token_transfers(
&self,
tx_input: &TxInput,
) -> BuiltinFunctionEsdtTransferInfo
pub fn extract_token_transfers( &self, tx_input: &TxInput, ) -> BuiltinFunctionEsdtTransferInfo
Provides data on the builtin functions that perform ESDT token transfers.
Auto Trait Implementations§
impl Freeze for BuiltinFunctionContainer
impl RefUnwindSafe for BuiltinFunctionContainer
impl Send for BuiltinFunctionContainer
impl Sync for BuiltinFunctionContainer
impl Unpin for BuiltinFunctionContainer
impl UnwindSafe for BuiltinFunctionContainer
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more