pub struct ThinBox<T>where
T: ?Sized,{ /* private fields */ }🔬This is a nightly-only experimental API. (
thin_box #92791)Expand description
Implementations§
Source§impl<T> ThinBox<T>
impl<T> ThinBox<T>
Trait Implementations§
Source§impl<T> Error for ThinBox<T>
impl<T> Error for ThinBox<T>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl<T> Send for ThinBox<T>
ThinBox<T> is Send if T is Send because the data is owned.
impl<T> Sync for ThinBox<T>
ThinBox<T> is Sync if T is Sync because the data is owned.
Auto Trait Implementations§
impl<T> Freeze for ThinBox<T>
impl<T> RefUnwindSafe for ThinBox<T>
impl<T> Unpin for ThinBox<T>
impl<T> UnsafeUnpin for ThinBox<T>
impl<T> UnwindSafe for ThinBox<T>
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
Source§impl<T> UserSafeCopyDestination<T> for T
impl<T> UserSafeCopyDestination<T> for T
Source§fn as_mut_ptr(&mut self) -> *mut T
fn as_mut_ptr(&mut self) -> *mut T
🔬This is a nightly-only experimental API. (
sgx_platform #56975)Available on Fortanix and SGX only.
Returns a pointer for writing to the value.