#[derive(thiserror::Error, Debug, PartialEq)]
pub enum Error {
#[error("Requested allocation size is too large")]
RequestedAllocationTooLarge,
#[error("Allocator ran out of space")]
AllocatorOutOfSpace,
#[error("Shrinking of the underlying memory is observed")]
MemoryShrunk,
#[error("Other: {0}")]
Other(&'static str),
}