#[repr(C, align(16))]pub struct TlsOneThreadStorageAllocation { /* private fields */ }
Expand description
This is a “proxy” type to TlsOneThreadStorage
with the same size and alignment.
Unlike TlsOneThreadStorage
, it is exposed to C, that C code can provide
a “thread-local allocator” that we delegate to in Mode::Native
.
Trait Implementations§
Source§impl Clone for TlsOneThreadStorageAllocation
impl Clone for TlsOneThreadStorageAllocation
Source§fn clone(&self) -> TlsOneThreadStorageAllocation
fn clone(&self) -> TlsOneThreadStorageAllocation
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for TlsOneThreadStorageAllocation
Auto Trait Implementations§
impl Freeze for TlsOneThreadStorageAllocation
impl RefUnwindSafe for TlsOneThreadStorageAllocation
impl Send for TlsOneThreadStorageAllocation
impl Sync for TlsOneThreadStorageAllocation
impl Unpin for TlsOneThreadStorageAllocation
impl UnwindSafe for TlsOneThreadStorageAllocation
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