Trait HasParameter

Source
pub trait HasParameter:
    Read
    + Seek
    + HasSize { }
Expand description

Objects which can access parameters to contracts.

This trait has a Read supertrait which means that structured parameters can be directly deserialized by using .get() function from the Get trait.

The reuse of Read methods is the reason for the slightly strange choice of methods of this trait.

§Deprecation notice

This trait is deprecated along with crate::test_infrastructure.

Use ExternParameter instead unless you intend to use the deprecated test infrastructure.

See the crate documentation for more details.

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§