#[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 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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