pub fn len(&self) -> usize {
        let head = self.head.load_relaxed();
        let tail = self.tail.load_relaxed();

        if head > tail {
            head - tail
        } else {
            tail - head
        }
    }
/// Returns the number of elements in the queue
Returns the number of elements in the queue
Returns the number of elements in the queue
pub fn len(&self) -> usize {
        let head = self.head.load_relaxed();
        let tail = self.tail.load_relaxed();
        if head > tail {
            head - tail
        } else {
            tail - head
        }
    }
pub fn len ( & self ) -> usize { let head = self . head . load_relaxed ( ) ; let tail = self . tail . load_relaxed ( ) ; if head > tail { head - tail } else { tail - head } }
Returns the number of elements in the queue
Returns the number of elements in the queue
&self
&self