}
impl<T: Idx> WorkQueue<T> {
- /// Create a new work queue with all the elements from (0..len).
+ /// Creates a new work queue with all the elements from (0..len).
#[inline]
pub fn with_all(len: usize) -> Self {
WorkQueue {
}
}
- /// Create a new work queue that starts empty, where elements range from (0..len).
+ /// Creates a new work queue that starts empty, where elements range from (0..len).
#[inline]
pub fn with_none(len: usize) -> Self {
WorkQueue {
}
}
- /// True if nothing is enqueued.
+ /// Returns `true` if nothing is enqueued.
#[inline]
pub fn is_empty(&self) -> bool {
self.deque.is_empty()