pub struct Tumbling<Q: Queue>(/* private fields */);
Expand description
The core tumbling queue.
Implementations§
Source§impl<Q> Tumbling<Q>where
Q: Queue,
impl<Q> Tumbling<Q>where
Q: Queue,
Sourcepub fn as_view<'a>(&'a self) -> View<'a, dyn Queue<Item = Q::Item> + 'a>
pub fn as_view<'a>(&'a self) -> View<'a, dyn Queue<Item = Q::Item> + 'a>
Convert to a view of the queue.
Sourcepub fn as_queue_ref(&self) -> QueueRef<'_, Q::Item>
pub fn as_queue_ref(&self) -> QueueRef<'_, Q::Item>
Convert to a QueueRef
.
Sourcepub fn as_view_mut<'a>(
&'a mut self,
) -> ViewMut<'a, dyn Queue<Item = Q::Item> + 'a>
pub fn as_view_mut<'a>( &'a mut self, ) -> ViewMut<'a, dyn Queue<Item = Q::Item> + 'a>
Convert to a mutable view of the queue.
Sourcepub fn as_queue_mut(&mut self) -> QueueMut<'_, Q::Item>
pub fn as_queue_mut(&mut self) -> QueueMut<'_, Q::Item>
Convert to a QueueMut
.
Trait Implementations§
Auto Trait Implementations§
impl<Q> Freeze for Tumbling<Q>
impl<Q> RefUnwindSafe for Tumbling<Q>
impl<Q> Send for Tumbling<Q>
impl<Q> Sync for Tumbling<Q>
impl<Q> Unpin for Tumbling<Q>
impl<Q> UnwindSafe for Tumbling<Q>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more