use o3::depot::map::compact;
pub(in crate::payload::compress::dynamic) struct Clear<O, const N: usize = 0>(pub O);
impl<O> Clear<O>
where
Self: compact::raw::Write,
Clear<O, 1>: compact::raw::Write,
{
pub(in crate::payload::compress::dynamic) unsafe fn reset(mut self) -> O {
unsafe { compact::raw::Write::clear(&mut self) };
let mut exact = Clear::<O, 1>(self.0);
unsafe { compact::raw::Write::clear(&mut exact) };
exact.0
}
}