pub struct TypedNanBox<T> { /* private fields */ }
Implementations§
Source§impl<T> TypedNanBox<T>
impl<T> TypedNanBox<T>
pub unsafe fn new<U>(tag: u8, value: U) -> TypedNanBox<T>where
U: NanBoxable,
pub unsafe fn unpack<U>(self) -> Uwhere
U: NanBoxable,
pub fn tag(&self) -> u32
Trait Implementations§
Source§impl<T> Clone for TypedNanBox<T>
impl<T> Clone for TypedNanBox<T>
Source§impl<T> Debug for TypedNanBox<T>
impl<T> Debug for TypedNanBox<T>
Source§impl<T> Display for TypedNanBox<T>
impl<T> Display for TypedNanBox<T>
Source§impl<T> From<T> for TypedNanBox<T>where
T: From<TypedNanBox<T>>,
impl<T> From<T> for TypedNanBox<T>where
T: From<TypedNanBox<T>>,
Source§fn from(value: T) -> TypedNanBox<T>
fn from(value: T) -> TypedNanBox<T>
Converts to this type from the input type.
Source§impl<T> Ord for TypedNanBox<T>
impl<T> Ord for TypedNanBox<T>
Source§fn cmp(&self, other: &TypedNanBox<T>) -> Ordering
fn cmp(&self, other: &TypedNanBox<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T> PartialEq for TypedNanBox<T>
impl<T> PartialEq for TypedNanBox<T>
Source§impl<T> PartialOrd for TypedNanBox<T>
impl<T> PartialOrd for TypedNanBox<T>
impl<T> Copy for TypedNanBox<T>
impl<T> Eq for TypedNanBox<T>
Auto Trait Implementations§
impl<T> Freeze for TypedNanBox<T>
impl<T> RefUnwindSafe for TypedNanBox<T>where
T: RefUnwindSafe,
impl<T> Send for TypedNanBox<T>where
T: Send,
impl<T> Sync for TypedNanBox<T>where
T: Sync,
impl<T> Unpin for TypedNanBox<T>where
T: Unpin,
impl<T> UnwindSafe for TypedNanBox<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more