use crate::Sort;
#[doc = crate::_tags!(namespace num)]
#[doc = crate::_doc_location!("data")]
#[cfg_attr(nightly_doc, doc(cfg(feature = "alloc")))]
#[repr(transparent)]
#[derive(Debug)]
pub struct SortAlloc<T>(pub Sort<T>);
impl<T> SortAlloc<T> {
pub fn new(inner: T) -> Self {
Self(Sort(inner))
}
}
impl<T> crate::Deref for SortAlloc<T> {
type Target = Sort<T>;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl<T> crate::DerefMut for SortAlloc<T> {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
}