pub struct Local { /* private fields */ }
Expand description
Reference count type used by the #[refcounted]
attribute.
Trait Implementations§
Source§impl Refcount for Local
impl Refcount for Local
Source§unsafe fn new() -> Self
unsafe fn new() -> Self
Construct a new instance of the refcount, initialized to a default value.
Source§unsafe fn inc_strong<T>(ptr: *const Inner<T>)where
T: Refcounted<Rc = Self> + ?Sized,
unsafe fn inc_strong<T>(ptr: *const Inner<T>)where
T: Refcounted<Rc = Self> + ?Sized,
Increment the strong reference count for this object. Read more
Source§unsafe fn dec_strong<T>(ptr: *const Inner<T>)where
T: Refcounted<Rc = Self> + ?Sized,
unsafe fn dec_strong<T>(ptr: *const Inner<T>)where
T: Refcounted<Rc = Self> + ?Sized,
Decrement the strong reference count for this object. Read more
Source§unsafe fn strong_count<T>(ptr: *const Inner<T>) -> usizewhere
T: Refcounted<Rc = Self> + ?Sized,
unsafe fn strong_count<T>(ptr: *const Inner<T>) -> usizewhere
T: Refcounted<Rc = Self> + ?Sized,
Gets the number of strong references to this allocation.
Auto Trait Implementations§
impl !Freeze for Local
impl !RefUnwindSafe for Local
impl Send for Local
impl !Sync for Local
impl Unpin for Local
impl UnwindSafe for Local
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