kay 0.5.1

Experimental high-performance actor system framework for Rust
1
2
3
4
5
6
7
8
9
10
11
12
use std::mem::size_of;
pub trait StorageAware: Sized {
    fn typical_size() -> usize {
        let size = size_of::<Self>();
        if size == 0 {
            1
        } else {
            size
        }
    }
}
impl<T> StorageAware for T {}