pub unsafe fn add_ref(this: &Self) -> u32
    {
        let previous_value = this.ref_count.fetch_add(1, Ordering::Relaxed);
        previous_value + 1
    }
/// Increments the reference count.
///
/// Returns the reference count after the increment.
///
/// # Safety
///
/// The method isn't technically unsafe in regard to Rust unsafety, but
/// it's marked as unsafe to discourage it's use due to high risks of
/// memory leaks.
Increments the reference count.
Returns the reference count after the increment.
Increments the reference count . Returns the reference count after the increment .
pub unsafe fn add_ref(this: &Self) -> u32
    {
        let previous_value = this.ref_count.fetch_add(1, Ordering::Relaxed);
        previous_value + 1
    }
pub unsafe fn add_ref ( this : & Self ) -> u32 { let previous_value = this . ref_count . fetch_add ( 1 , Ordering :: Relaxed ) ; previous_value + 1 }
Increments the reference count.
Increments the reference count .
this
&Self
this
&Self
safety
The method isn't technically unsafe in regard to Rust unsafety, but
it's marked as unsafe to discourage it's use due to high risks of
memory leaks.
The method isn ' t technically unsafe in regard to Rust unsafety but it ' s marked as unsafe to discourage it ' s use due to high risks of memory leaks .