pub struct UniBox32 { /* private fields */ }Expand description
Store a type on stack with a max size of 32 bytes.
Trait Implementations§
Source§impl Uniboxed for UniBox32
impl Uniboxed for UniBox32
Source§fn new<T: Sized>(instance: T) -> Result<Self, ()>where
Self: Sized,
fn new<T: Sized>(instance: T) -> Result<Self, ()>where
Self: Sized,
Create a new UniBox instance.
Source§unsafe fn as_mut_ref<T: Sized>(&mut self) -> &mut T
unsafe fn as_mut_ref<T: Sized>(&mut self) -> &mut T
Get mutable reference to stored data using a type. Read more
Source§fn id(&self) -> &'static str
fn id(&self) -> &'static str
Type identifier. Automatically assigned with
core::any::type_name.Source§fn check_type<T>(&self) -> bool
fn check_type<T>(&self) -> bool
Check if the provided and hosted types are the same.
Auto Trait Implementations§
impl Freeze for UniBox32
impl RefUnwindSafe for UniBox32
impl Send for UniBox32
impl Sync for UniBox32
impl Unpin for UniBox32
impl UnwindSafe for UniBox32
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