pub fn len_virtual_nodes(&self) -> usize {
        let guard = epoch::pin();
        let inner = self.inner.load(Ordering::Acquire, &guard);
        // SAFETY: `self.inner` is not null because after its initialization, it is always
        // `HashRing::update` ever setting it, and it is never set to null. Furthermore, we always
        // use Acquire/Release ordering.
        unsafe { inner.as_ref().expect("inner HashRingState is null!") }.len_virtual_nodes()
        //unsafe { inner.deref() }.len_virtual_nodes()
    }
/// Returns the number of *virtual nodes* that currently populate the consistent hashing ring.
///
/// This should always be equal to the result of [`HashRing::len_nodes`] multiplied by the
/// `vnodes_per_node` for a particular [`HashRing<N, H>`].
Returns the number of *virtual nodes* that currently populate the consistent hashing ring.
Returns the number of * virtual nodes * that currently populate the consistent hashing ring .
pub fn len_virtual_nodes(&self) -> usize {
        let guard = epoch::pin();
        let inner = self.inner.load(Ordering::Acquire, &guard);
        // SAFETY: `self.inner` is not null because after its initialization, it is always
        // `HashRing::update` ever setting it, and it is never set to null. Furthermore, we always
        // use Acquire/Release ordering.
        unsafe { inner.as_ref().expect("inner HashRingState is null!") }.len_virtual_nodes()
        //unsafe { inner.deref() }.len_virtual_nodes()
    }
pub fn len_virtual_nodes ( & self ) -> usize { let guard = epoch :: pin ( ) ; let inner = self . inner . load ( Ordering :: Acquire , & guard ) ; // SAFETY: `self.inner` is not null because after its initialization, it is always // `HashRing::update` ever setting it, and it is never set to null. Furthermore, we always // use Acquire/Release ordering. unsafe { inner . as_ref ( ) . expect ( " " ) } . len_virtual_nodes ( ) //unsafe { inner.deref() }.len_virtual_nodes() }
Returns the number of *virtual nodes* that currently populate the consistent hashing ring.
Returns the number of * virtual nodes * that currently populate the consistent hashing ring .
&self
&self