pub enum CoreFunction {
Show 28 variants
    ChaChaRand(LiteralType),
    Commit(CommitVariant, LiteralType),
    ECDSAVerify(ECDSAVerifyVariant),
    Hash(HashVariant, Type),
    Get,
    Set,
    MappingGetOrUse,
    MappingRemove,
    MappingContains,
    OptionalUnwrap,
    OptionalUnwrapOr,
    VectorPush,
    VectorLen,
    VectorClear,
    VectorPop,
    VectorSwapRemove,
    GroupToXCoordinate,
    GroupToYCoordinate,
    SignatureVerify,
    FutureAwait,
    ProgramChecksum,
    ProgramEdition,
    ProgramOwner,
    Serialize(SerializeVariant),
    Deserialize(DeserializeVariant, Type),
    CheatCodePrintMapping,
    CheatCodeSetBlockHeight,
    CheatCodeSetSigner,
}Expand description
A core instruction that maps directly to an AVM bytecode instruction.
Variants§
ChaChaRand(LiteralType)
Commit(CommitVariant, LiteralType)
ECDSAVerify(ECDSAVerifyVariant)
Hash(HashVariant, Type)
Get
Set
MappingGetOrUse
MappingRemove
MappingContains
OptionalUnwrap
OptionalUnwrapOr
VectorPush
VectorLen
VectorClear
VectorPop
VectorSwapRemove
GroupToXCoordinate
GroupToYCoordinate
SignatureVerify
FutureAwait
ProgramChecksum
ProgramEdition
ProgramOwner
Serialize(SerializeVariant)
Deserialize(DeserializeVariant, Type)
CheatCodePrintMapping
CheatCodeSetBlockHeight
CheatCodeSetSigner
Implementations§
Source§impl CoreFunction
 
impl CoreFunction
Sourcepub fn from_symbols(module: Symbol, function: Symbol) -> Option<Self>
 
pub fn from_symbols(module: Symbol, function: Symbol) -> Option<Self>
Returns a CoreFunction from the given module and method symbols.
Sourcepub fn is_finalize_command(&self) -> bool
 
pub fn is_finalize_command(&self) -> bool
Returns whether or not this function is finalize command.
Trait Implementations§
Source§impl Clone for CoreFunction
 
impl Clone for CoreFunction
Source§fn clone(&self) -> CoreFunction
 
fn clone(&self) -> CoreFunction
Returns a duplicate 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 CoreFunction
 
impl Debug for CoreFunction
Source§impl PartialEq for CoreFunction
 
impl PartialEq for CoreFunction
impl Eq for CoreFunction
impl StructuralPartialEq for CoreFunction
Auto Trait Implementations§
impl Freeze for CoreFunction
impl RefUnwindSafe for CoreFunction
impl Send for CoreFunction
impl Sync for CoreFunction
impl Unpin for CoreFunction
impl UnwindSafe for CoreFunction
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> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.§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>
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