use core::ops::Deref;
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[repr(transparent)]
pub struct Big<T>(pub T);
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[repr(transparent)]
pub struct Little<T>(pub T);
impl<T> Deref for Big<T> {
type Target = T;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl<T> Deref for Little<T> {
type Target = T;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl<T> crate::Sized for Big<T>
where
T: crate::Sized,
{
fn bits() -> usize {
T::bits()
}
}
impl<T> crate::Sized for Little<T>
where
T: crate::Sized,
{
fn bits() -> usize {
T::bits()
}
}