#[repr(C)]pub struct CArc<T: Sized + 'static> { /* private fields */ }
Expand description
FFI-Safe Arc
This is an FFI-Safe equivalent of Arc
Implementations§
Trait Implementations§
source§impl<T: Sized + 'static> AsRef<Option<&'static T>> for CArc<T>
impl<T: Sized + 'static> AsRef<Option<&'static T>> for CArc<T>
source§fn as_ref(&self) -> &Option<&'static T>
fn as_ref(&self) -> &Option<&'static T>
Converts this type into a shared reference of the (usually inferred) input type.
source§impl<T> Opaquable for CArc<T>
impl<T> Opaquable for CArc<T>
type OpaqueTarget = CArc<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 CArc<T>
impl<T: Sync + Send> Sync for CArc<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for CArc<T>where T: RefUnwindSafe,
impl<T> Unpin for CArc<T>
impl<T> UnwindSafe for CArc<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