o3 0.15.0

shared-nothing primitives
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::collections::queue::slot;

pub struct Front<'queue, T>(slot::Occupied<'queue, T>);

impl<'queue, T> Front<'queue, T> {
    pub(super) fn new(entry: slot::Occupied<'queue, T>) -> Self {
        Self(entry)
    }

    pub fn index(&self) -> usize {
        self.0.index()
    }

    pub fn remove(self) -> T {
        self.0.remove()
    }
}