Trait ink_storage::traits::ExtKeyPtr
source · [−]pub trait ExtKeyPtr {
fn next_for<T>(&mut self) -> &Key
where
T: SpreadLayout;
}
Expand description
Extension trait to make KeyPtr
simpler to use for T: SpreadLayout
types.
Required Methods
fn next_for<T>(&mut self) -> &Key where
T: SpreadLayout,
fn next_for<T>(&mut self) -> &Key where
T: SpreadLayout,
Advances the key pointer by the same amount of the footprint of the
generic type parameter of T
and returns the old value.