use thiserror::Error;
#[derive(Error, Debug, PartialEq, Eq)]
pub enum PagingError {
#[error("can't allocate memory")]
NoMemory,
#[error("{0} is not aligned")]
NotAligned(&'static str),
#[error("not mapped")]
NotMapped,
#[error("already mapped")]
AlreadyMapped,
}
pub type PagingResult<T = ()> = Result<T, PagingError>;