1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Zink storage implementation.

use crate::Asm;

mod mapping;

/// Storage trait. Currently not for public use
pub trait Storage<T: Asm> {
    const STORAGE_KEY: i32;

    /// Get value from storage.
    fn get() -> T;

    /// Set value to storage.
    fn set(value: T);
}