pub trait SpreadAllocate: SpreadLayout {
    fn allocate_spread(ptr: &mut KeyPtr) -> Self;
}
Expand description

Types that can be default initialized to some area of the contract storage.

Required Methods

Default initializes the implementing type using spread layout.

Note
  • The key pointer denotes the position in contract storage where the instance is being allocated at.
  • Fields of Self are allocated in order and construct Self upon completion.

Implementations on Foreign Types

Implementors