magic-space 0.1.0

Like anchor's InitSpace but without the dependency on anchor.
Documentation
1
2
3
4
5
6
7
8
9
10
11
pub use magic_space_derive::MagicSpace;

pub trait Space {
    const MAGIC_SPACE: usize;
}

pub mod __private {
    pub const fn max(a: usize, b: usize) -> usize {
        [a, b][(a < b) as usize]
    }
}