ab_contracts_common::method

Trait ExternalArgs

Source
pub unsafe trait ExternalArgs {
    const FINGERPRINT: MethodFingerprint;
}
Expand description

Marker trait for external arguments when calling methods.

§Safety

Struct that implements this trait must be #[repr(C)] and valid ExternalArgs for the contract method being called.

Do not implement this trait explicitly! Implementation is automatically generated by the macro which generates smart contract implementation.

Required Associated Constants§

Source

const FINGERPRINT: MethodFingerprint

Fingerprint of the method being called

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§