transparent smallbox
This commit is contained in:
parent
5881f8e26a
commit
52fea2e306
|
@ -188,6 +188,7 @@ mod job {
|
||||||
use super::util::TaggedAtomicPtr;
|
use super::util::TaggedAtomicPtr;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
#[repr(transparent)]
|
||||||
pub struct SmallBox<T>(pub MaybeUninit<Box<T>>);
|
pub struct SmallBox<T>(pub MaybeUninit<Box<T>>);
|
||||||
|
|
||||||
impl<T: Display> Display for SmallBox<T> {
|
impl<T: Display> Display for SmallBox<T> {
|
||||||
|
|
Loading…
Reference in a new issue