Module ink_metadata::layout

source ·


  • A layout for an array of associated cells with the same encoding.
  • The discriminant of an enum variant.
  • An enum storage layout.
  • The layout for a particular field of a struct layout.
  • A hashing layout potentially hitting all cells of the storage.
  • The unbounded hashing strategy.
  • A pointer into some storage region.
  • A SCALE encoded cell.
  • Sub-tree root.
  • A struct layout with consecutive fields of different layout.
  • It validates that the storage layout doesn’t have conflicting storage keys. Otherwise an error with a description of the conflict is returned.


  • One of the supported crypto hashers.
  • Represents the static storage layout of an ink! smart contract.
  • An error that can occur during ink! metadata generation.