#[repr(u8)]
pub enum GMArgs {
IsCallerExternal,
GetCaller,
GetVerifyingPredicate,
}
Expand description
Argument list for GM (get metadata) instruction
Variants§
IsCallerExternal
Get if caller is external.
GetCaller
Get caller’s contract ID.
GetVerifyingPredicate
Get index of current predicate.
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for GMArgs
impl<'arbitrary> Arbitrary<'arbitrary> for GMArgs
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl<'de> Deserialize<'de> for GMArgs
impl<'de> Deserialize<'de> for GMArgs
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<GMArgs> for Immediate18
impl From<GMArgs> for Immediate18
source§impl PartialEq<GMArgs> for GMArgs
impl PartialEq<GMArgs> for GMArgs
source§impl TryFrom<u32> for GMArgs
impl TryFrom<u32> for GMArgs
§type Error = PanicReason
type Error = PanicReason
The type returned in the event of a conversion error.