#[repr(C)]pub struct RefCount {
pub ptr: *const RefCountInner,
pub run_destructor: bool,
}Fields§
§ptr: *const RefCountInner§run_destructor: boolImplementations§
Source§impl RefCount
impl RefCount
pub fn debug_get_refcount_copied(&self) -> RefCountInnerDebug
Runtime check to check whether this RefAny can be borrowed
Runtime check to check whether this RefAny can be borrowed mutably
pub fn increase_ref(&self)
pub fn decrease_ref(&self)
pub fn increase_refmut(&self)
pub fn decrease_refmut(&self)
Trait Implementations§
Source§impl Ord for RefCount
impl Ord for RefCount
Source§impl PartialOrd for RefCount
impl PartialOrd for RefCount
impl Eq for RefCount
impl StructuralPartialEq for RefCount
Auto Trait Implementations§
impl Freeze for RefCount
impl RefUnwindSafe for RefCount
impl !Send for RefCount
impl !Sync for RefCount
impl Unpin for RefCount
impl UnwindSafe for RefCount
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more