#[repr(C)]pub struct IntrusivePtr<T>where
T: IntrusiveCounter + ?Sized,{ /* private fields */ }
Implementations§
Source§impl<T> IntrusivePtr<T>where
T: IntrusiveCounter,
impl<T> IntrusivePtr<T>where
T: IntrusiveCounter,
pub fn new(t: T) -> IntrusivePtr<T>
Source§impl<T> IntrusivePtr<T>where
T: IntrusiveCounter + ?Sized,
impl<T> IntrusivePtr<T>where
T: IntrusiveCounter + ?Sized,
Trait Implementations§
Source§impl<T> Borrow<T> for IntrusivePtr<T>where
T: IntrusiveCounter + ?Sized,
impl<T> Borrow<T> for IntrusivePtr<T>where
T: IntrusiveCounter + ?Sized,
Source§impl<T> Clone for IntrusivePtr<T>where
T: IntrusiveCounter + ?Sized,
impl<T> Clone for IntrusivePtr<T>where
T: IntrusiveCounter + ?Sized,
Source§fn clone(&self) -> IntrusivePtr<T>
fn clone(&self) -> IntrusivePtr<T>
Returns a duplicate 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 moreSource§impl<T> Deref for IntrusivePtr<T>where
T: IntrusiveCounter + ?Sized,
impl<T> Deref for IntrusivePtr<T>where
T: IntrusiveCounter + ?Sized,
Source§impl<T> DerefMut for IntrusivePtr<T>where
T: IntrusiveCounter + ?Sized,
impl<T> DerefMut for IntrusivePtr<T>where
T: IntrusiveCounter + ?Sized,
Source§impl<T> Drop for IntrusivePtr<T>where
T: IntrusiveCounter + ?Sized,
impl<T> Drop for IntrusivePtr<T>where
T: IntrusiveCounter + ?Sized,
Auto Trait Implementations§
impl<T> Freeze for IntrusivePtr<T>where
T: ?Sized,
impl<T> RefUnwindSafe for IntrusivePtr<T>where
T: RefUnwindSafe + ?Sized,
impl<T> !Send for IntrusivePtr<T>
impl<T> !Sync for IntrusivePtr<T>
impl<T> Unpin for IntrusivePtr<T>where
T: ?Sized,
impl<T> UnwindSafe for IntrusivePtr<T>where
T: RefUnwindSafe + ?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