#[repr(C)]pub(crate) struct ArcInner<T: ?Sized> {
pub(crate) count: AtomicUsize,
pub(crate) alloc_size: usize,
pub(crate) data: T,
}
Expand description
The object allocated by an Arc
See https://github.com/mozilla/cbindgen/issues/937 for the derive-{eq,neq}=false. But we don’t use those anyways so we can just disable them. cbindgen:derive-eq=false cbindgen:derive-neq=false
Fields§
§count: AtomicUsize
§alloc_size: usize
§data: T
Trait Implementations§
impl<T: ?Sized + Sync + Send> Send for ArcInner<T>
impl<T: ?Sized + Sync + Send> Sync for ArcInner<T>
Auto Trait Implementations§
impl<T> !Freeze for ArcInner<T>
impl<T> RefUnwindSafe for ArcInner<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Unpin for ArcInner<T>
impl<T> UnwindSafe for ArcInner<T>where
T: UnwindSafe + ?Sized,
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