pub trait Packed: Storable + Codec + Sealed { }
Expand description

Trait for describing types that can be read and written to storage while all fields occupy only a single storage cell.

If at least one of the fields in the type occupies its own storage cell, this type is considered non-packed.


The trait is automatically implemented for types that implement scale::Codec via blanket implementation.



impl<P> Packed for Pwhere P: Decode + Encode,