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.

  • 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