o3 0.62.0

shared-nothing primitives
Documentation
use storage::{alloc, provided::account, range};

use crate::{
    buffer::{resident, storage},
    mem::credit,
};

#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Error {
    Range(range::Error),
    Resident(resident::AllocError),
    Copy(alloc::Error<credit::Error>),
    Account(account::Cause),
}

impl From<range::Error> for Error {
    fn from(error: range::Error) -> Self {
        Self::Range(error)
    }
}

impl From<resident::AllocError> for Error {
    fn from(error: resident::AllocError) -> Self {
        Self::Resident(error)
    }
}

impl From<alloc::Error<credit::Error>> for Error {
    fn from(error: alloc::Error<credit::Error>) -> Self {
        Self::Copy(error)
    }
}