[][src]Enum solana_libra_ir_to_bytecode_syntax::ast::Builtin

pub enum Builtin {
    Release,
    Exists(StructName),
    BorrowGlobal(StructName),
    GetHeight,
    GetTxnGasUnitPrice,
    GetTxnMaxGasUnits,
    GetTxnPublicKey,
    GetTxnSender,
    GetTxnSequenceNumber,
    GetGasRemaining,
    EmitEvent,
    CreateAccount,
    MoveFrom(StructName),
    MoveToSender(StructName),
    Freeze,
}

Builtin "function"-like operators that often have a signature not expressable in the type system and/or have access to some runtime/storage context

Variants

Release

Intentionally destroy a resource (i.e., the inverse of new).

Exists(StructName)

Check if there is a struct object (StructName resolved by current module) associated with the given address

BorrowGlobal(StructName)

Get the struct object (StructName resolved by current module) associated with the given address

GetHeight

Returns the height of the current transaction.

GetTxnGasUnitPrice

Returns the price per gas unit the current transaction is willing to pay

GetTxnMaxGasUnits

Returns the maximum units of gas the current transaction is willing to use

GetTxnPublicKey

Returns the public key of the current transaction's sender

GetTxnSender

Returns the address of the current transaction's sender

GetTxnSequenceNumber

Returns the sequence number of the current transaction.

GetGasRemaining

Returns the unit of gas remain to be used for now.

EmitEvent

Emit an event

CreateAccount

Publishing, Initialize a previously empty address by publishing a resource of type Account

MoveFrom(StructName)

Remove a resource of the given type from the account with the given address

MoveToSender(StructName)

Publish an instantiated struct object into sender's account.

Freeze

Convert a mutable reference into an immutable one

Trait Implementations

impl Clone for Builtin[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<Builtin> for Builtin[src]

impl Display for Builtin[src]

impl Debug for Builtin[src]

Auto Trait Implementations

impl Sync for Builtin

impl Send for Builtin

impl Unpin for Builtin

impl RefUnwindSafe for Builtin

impl UnwindSafe for Builtin

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Erased for T

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized