pub fn weak_count(this: &Self) -> usize {
        let inner = this.inner();
        let cnt = load(inner.counter.lock.as_mut(), &this.inner().counter.weak);
        // If the weak count is currently locked, the value of the
        // count was 0 just before taking the lock.
        if cnt == usize::MAX {
            0
        } else {
            cnt - 1
        }
    }
/// Gets the number of `Weak` pointers to this allocation.
///
/// # Examples
///
/// ```
/// use corundum::alloc::heap::*;
/// use corundum::sync::Parc;
///
/// Heap::transaction(|j| {
///     let five = Parc::new(5, j);
///
///     let _weak_five = Parc::downgrade(&five, j);
///     assert_eq!(1, Parc::weak_count(&five));
/// }).unwrap()
/// ```
Gets the number of `Weak` pointers to this allocation.
Gets the number of ` Weak ` pointers to this allocation .
pub fn weak_count(this: &Self) -> usize {
        let inner = this.inner();
        let cnt = load(inner.counter.lock.as_mut(), &this.inner().counter.weak);
        // If the weak count is currently locked, the value of the
        // count was 0 just before taking the lock.
        if cnt == usize::MAX {
            0
        } else {
            cnt - 1
        }
    }
pub fn weak_count ( this : & Self ) -> usize { let inner = this . inner ( ) ; let cnt = load ( inner . counter . lock . as_mut ( ) , & this . inner ( ) . counter . weak ) ; // If the weak count is currently locked, the value of the // count was 0 just before taking the lock. if cnt == usize :: MAX { 0 } else { cnt - 1 } }
Gets the number of `Weak` pointers to this allocation.
Gets the number of ` Weak ` pointers to this allocation .
this
&Self
examples
```
use corundum::alloc::heap::*;
use corundum::sync::Parc.

:transaction(|j| {
let five = Parc::new(5, j).

let _weak_five = Parc::downgrade(&five, j);
assert_eq!(1, Parc::weak_count(&five));
}).unwrap()
```
` ` ` use corundum :: alloc :: heap :: * ; use corundum :: sync :: Parc . : transaction ( |j| { let five = Parc :: new ( 5 j ) . let _weak_five = Parc :: downgrade ( &five j ) ; assert_eq! ( 1 Parc :: weak_count ( &five )) ; } ) . unwrap () ` ` `