#[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
sourceimpl<'arbitrary> Arbitrary<'arbitrary> for GMArgs
impl<'arbitrary> Arbitrary<'arbitrary> for GMArgs
sourcefn 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 moresourcefn 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 moresourceimpl<'de> Deserialize<'de> for GMArgs
impl<'de> Deserialize<'de> for GMArgs
sourcefn 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
sourceimpl From<GMArgs> for Immediate18
impl From<GMArgs> for Immediate18
sourceimpl 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.
sourcefn try_from(value: Immediate18) -> Result<Self, Self::Error>
fn try_from(value: Immediate18) -> Result<Self, Self::Error>
Performs the conversion.
impl Copy for GMArgs
impl Eq for GMArgs
impl StructuralEq for GMArgs
impl StructuralPartialEq for GMArgs
Auto Trait Implementations
impl RefUnwindSafe for GMArgs
impl Send for GMArgs
impl Sync for GMArgs
impl Unpin for GMArgs
impl UnwindSafe for GMArgs
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more