Enum stacks_rpc_client::clarity::vm::functions::NativeFunctions
pub enum NativeFunctions {
Show 108 variants
Add,
Subtract,
Multiply,
Divide,
CmpGeq,
CmpLeq,
CmpLess,
CmpGreater,
ToInt,
ToUInt,
Modulo,
Power,
Sqrti,
Log2,
BitwiseXor,
And,
Or,
Not,
Equals,
If,
Let,
Map,
Fold,
Append,
Concat,
AsMaxLen,
Len,
ElementAt,
ElementAtAlias,
IndexOf,
IndexOfAlias,
BuffToIntLe,
BuffToUIntLe,
BuffToIntBe,
BuffToUIntBe,
IsStandard,
PrincipalDestruct,
PrincipalConstruct,
StringToInt,
StringToUInt,
IntToAscii,
IntToUtf8,
ListCons,
FetchVar,
SetVar,
FetchEntry,
SetEntry,
InsertEntry,
DeleteEntry,
TupleCons,
TupleGet,
TupleMerge,
Begin,
Hash160,
Sha256,
Sha512,
Sha512Trunc256,
Keccak256,
Secp256k1Recover,
Secp256k1Verify,
Print,
ContractCall,
AsContract,
ContractOf,
PrincipalOf,
AtBlock,
GetBlockInfo,
GetBurnBlockInfo,
ConsError,
ConsOkay,
ConsSome,
DefaultTo,
Asserts,
UnwrapRet,
UnwrapErrRet,
Unwrap,
UnwrapErr,
Match,
TryRet,
IsOkay,
IsNone,
IsErr,
IsSome,
Filter,
GetTokenBalance,
GetAssetOwner,
TransferToken,
TransferAsset,
MintAsset,
MintToken,
GetTokenSupply,
BurnToken,
BurnAsset,
GetStxBalance,
StxTransfer,
StxTransferMemo,
StxBurn,
StxGetAccount,
BitwiseAnd,
BitwiseOr,
BitwiseNot,
BitwiseLShift,
BitwiseRShift,
BitwiseXor2,
Slice,
ToConsensusBuff,
FromConsensusBuff,
ReplaceAt,
}
Variants§
Add
Subtract
Multiply
Divide
CmpGeq
CmpLeq
CmpLess
CmpGreater
ToInt
ToUInt
Modulo
Power
Sqrti
Log2
BitwiseXor
And
Or
Not
Equals
If
Let
Map
Fold
Append
Concat
AsMaxLen
Len
ElementAt
ElementAtAlias
IndexOf
IndexOfAlias
BuffToIntLe
BuffToUIntLe
BuffToIntBe
BuffToUIntBe
IsStandard
PrincipalDestruct
PrincipalConstruct
StringToInt
StringToUInt
IntToAscii
IntToUtf8
ListCons
FetchVar
SetVar
FetchEntry
SetEntry
InsertEntry
DeleteEntry
TupleCons
TupleGet
TupleMerge
Begin
Hash160
Sha256
Sha512
Sha512Trunc256
Keccak256
Secp256k1Recover
Secp256k1Verify
ContractCall
AsContract
ContractOf
PrincipalOf
AtBlock
GetBlockInfo
GetBurnBlockInfo
ConsError
ConsOkay
ConsSome
DefaultTo
Asserts
UnwrapRet
UnwrapErrRet
Unwrap
UnwrapErr
Match
TryRet
IsOkay
IsNone
IsErr
IsSome
Filter
GetTokenBalance
GetAssetOwner
TransferToken
TransferAsset
MintAsset
MintToken
GetTokenSupply
BurnToken
BurnAsset
GetStxBalance
StxTransfer
StxTransferMemo
StxBurn
StxGetAccount
BitwiseAnd
BitwiseOr
BitwiseNot
BitwiseLShift
BitwiseRShift
BitwiseXor2
Slice
ToConsensusBuff
FromConsensusBuff
ReplaceAt
Implementations§
§impl NativeFunctions
impl NativeFunctions
pub const ALL: &'static [NativeFunctions] = _
pub const ALL_NAMES: &'static [&'static str] = _
pub fn lookup_by_name(name: &str) -> Option<NativeFunctions>
pub fn get_version(&self) -> ClarityVersion
pub fn get_name(&self) -> String
pub fn get_name_str(&self) -> &'static str
§impl NativeFunctions
impl NativeFunctions
pub fn lookup_by_name_at_version( name: &str, version: &ClarityVersion ) -> Option<NativeFunctions>
Trait Implementations§
§impl Clone for NativeFunctions
impl Clone for NativeFunctions
§fn clone(&self) -> NativeFunctions
fn clone(&self) -> NativeFunctions
Returns a copy 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 more§impl Debug for NativeFunctions
impl Debug for NativeFunctions
§impl<'de> Deserialize<'de> for NativeFunctions
impl<'de> Deserialize<'de> for NativeFunctions
§fn deserialize<__D>(
__deserializer: __D
) -> Result<NativeFunctions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<NativeFunctions, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for NativeFunctions
impl Display for NativeFunctions
§impl Hash for NativeFunctions
impl Hash for NativeFunctions
§impl PartialEq for NativeFunctions
impl PartialEq for NativeFunctions
§fn eq(&self, other: &NativeFunctions) -> bool
fn eq(&self, other: &NativeFunctions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for NativeFunctions
impl Serialize for NativeFunctions
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for NativeFunctions
impl Eq for NativeFunctions
impl StructuralEq for NativeFunctions
impl StructuralPartialEq for NativeFunctions
Auto Trait Implementations§
impl RefUnwindSafe for NativeFunctions
impl Send for NativeFunctions
impl Sync for NativeFunctions
impl Unpin for NativeFunctions
impl UnwindSafe for NativeFunctions
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.