use super::Binable;
use crate::{impl_bin_fields, utils::Length};
use std::fmt::Debug;
#[derive(Clone, Copy, Default, Debug, Hash, Eq, PartialEq)]
pub struct Pid(pub(crate) u32);
impl std::ops::Deref for Pid {
type Target = u32;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl Binable for Pid {
impl_bin_fields![0];
}
pub trait Page: Binable + Clone + Debug {
type Size: Length;
}