#[repr(C)]pub struct CArcSome<T: Sized + 'static> { /* private fields */ }
Expand description
FFI-Safe Arc
This is a variant where the underlying instance is always Some(&T)
, meaning there is no need
for any None
checks.
This Arc essentially uses clone/drop from the module that created it, to not mix up global allocators.
Implementations§
Trait Implementations§
source§impl<T> Opaquable for CArcSome<T>
impl<T> Opaquable for CArcSome<T>
type OpaqueTarget = CArcSome<c_void>
source§fn into_opaque(self) -> Self::OpaqueTarget
fn into_opaque(self) -> Self::OpaqueTarget
Transform self into an opaque version of the trait object. Read more
impl<T: Sync + Send> Send for CArcSome<T>
impl<T: Sync + Send> Sync for CArcSome<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for CArcSome<T>where T: RefUnwindSafe,
impl<T> Unpin for CArcSome<T>
impl<T> UnwindSafe for CArcSome<T>where T: RefUnwindSafe,
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