pub trait PackedLayout: SpreadLayout + Encode + Decode {
    fn pull_packed(&mut self, at: &Key);
    fn push_packed(&self, at: &Key);
    fn clear_packed(&self, at: &Key);
}
Expand description

Types that can be stored to and loaded from a single contract storage cell.

Required Methods

Indicates to self that is has just been pulled from the storage.

Note

Most types will have to implement a trivial forwarding to their fields.

Indicates to self that it is about to be pushed to contract storage.

Note

Most types will have to implement a trivial forwarding to their fields.

Indicates to self that it is about to be cleared from contract storage.

Note

Most types will have to implement a trivial forwarding to their fields.

Implementations on Foreign Types

Implementors