osom_lib_hash_tables/bytell/errors.rs
1//! Contains bytell specific errors.
2
3use osom_lib_alloc::traits::AllocationError;
4
5/// Represents possible errors that can occur when dealing with the bytell hash table.
6#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash)]
7#[repr(u8)]
8pub enum BytellError {
9 AllocationError = 0,
10 TableTooBigError = 1,
11}
12
13impl From<AllocationError> for BytellError {
14 #[inline(always)]
15 fn from(_: AllocationError) -> Self {
16 BytellError::AllocationError
17 }
18}