use crate::{alloc, depot::capacity};
pub mod total;
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub struct Overflow<T = usize> {
pub current: T,
pub added: T,
}
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum Error {
Metadata(alloc::Error),
Total(total::Error),
Nodes {
shortage: capacity::Shortage,
allocation: alloc::Error,
},
Descriptors {
shortage: capacity::Shortage,
allocation: alloc::Error,
},
}
const _: () = assert!(size_of::<Error>() == 4 * size_of::<usize>());