nimix 0.1.2

An allocator designed to be use by a GC
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::alloc::LayoutError;

impl From<LayoutError> for AllocError {
    fn from(_: LayoutError) -> Self {
        Self::LayoutError
    }
}

#[derive(Debug)]
pub enum AllocError {
    OOM,
    AllocOverflow,
    LayoutError,
}