pub struct FCFSStorage<T> { /* private fields */ }Expand description
The FCFS queue storage.
Implementations§
Trait Implementations§
Source§impl<T> QueueStorage for FCFSStorage<T>where
T: Clone + 'static,
impl<T> QueueStorage for FCFSStorage<T>where
T: Clone + 'static,
Source§type Priority = ()
type Priority = ()
The type of priorities, if
push_with_priority is supported.
Otherwise, it may define the () type.Source§fn push(&self, item: Self::Item, p: &Point<'_>)
fn push(&self, item: Self::Item, p: &Point<'_>)
Push an item, or panic if only
push_with_priority is supported.Source§fn push_with_priority(
&self,
_priority: Self::Priority,
_item: Self::Item,
_p: &Point<'_>,
)
fn push_with_priority( &self, _priority: Self::Priority, _item: Self::Item, _p: &Point<'_>, )
Push an item with the specified priority, or panic if only
push is supported.Source§fn remove_by<F>(&self, predicate: F, p: &Point<'_>) -> Option<Self::Item>
fn remove_by<F>(&self, predicate: F, p: &Point<'_>) -> Option<Self::Item>
Try to remove an item satisfying the specified predicate and return the item removed.
Auto Trait Implementations§
impl<T> !Freeze for FCFSStorage<T>
impl<T> !RefUnwindSafe for FCFSStorage<T>
impl<T> !Send for FCFSStorage<T>
impl<T> !Sync for FCFSStorage<T>
impl<T> !UnwindSafe for FCFSStorage<T>
impl<T> Unpin for FCFSStorage<T>where
T: Unpin,
impl<T> UnsafeUnpin for FCFSStorage<T>where
T: UnsafeUnpin,
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<S> BoxableQueueStorage for Swhere
S: QueueStorage,
impl<S> BoxableQueueStorage for Swhere
S: QueueStorage,
Source§type Priority = <S as QueueStorage>::Priority
type Priority = <S as QueueStorage>::Priority
The type of priorities, if
push_with_priority is supported.
Otherwise, it may define the () type.Source§type Item = <S as QueueStorage>::Item
type Item = <S as QueueStorage>::Item
The type of items.
Source§fn push(&self, item: <S as BoxableQueueStorage>::Item, p: &Point<'_>)
fn push(&self, item: <S as BoxableQueueStorage>::Item, p: &Point<'_>)
Push an item, or panic if only
push_with_priority is supported.Source§fn push_with_priority(
&self,
priority: <S as BoxableQueueStorage>::Priority,
item: <S as BoxableQueueStorage>::Item,
p: &Point<'_>,
)
fn push_with_priority( &self, priority: <S as BoxableQueueStorage>::Priority, item: <S as BoxableQueueStorage>::Item, p: &Point<'_>, )
Push an item with the specified priority, or panic if only
push is supported.Source§fn remove_boxed_by(
&self,
predicate: Rc<dyn Fn(&<S as BoxableQueueStorage>::Item) -> bool>,
p: &Point<'_>,
) -> Option<<S as BoxableQueueStorage>::Item>
fn remove_boxed_by( &self, predicate: Rc<dyn Fn(&<S as BoxableQueueStorage>::Item) -> bool>, p: &Point<'_>, ) -> Option<<S as BoxableQueueStorage>::Item>
Try to remove an item satisfying the specified predicate and return the item removed.
Source§fn exists_boxed(
&self,
predicate: Rc<dyn Fn(&<S as BoxableQueueStorage>::Item) -> bool>,
p: &Point<'_>,
) -> bool
fn exists_boxed( &self, predicate: Rc<dyn Fn(&<S as BoxableQueueStorage>::Item) -> bool>, p: &Point<'_>, ) -> bool
Detect whether there is an element satisfying the specified predicate in the queue.
Source§fn find_boxed(
&self,
predicate: Rc<dyn Fn(&<S as BoxableQueueStorage>::Item) -> bool>,
p: &Point<'_>,
) -> Option<<S as BoxableQueueStorage>::Item>
fn find_boxed( &self, predicate: Rc<dyn Fn(&<S as BoxableQueueStorage>::Item) -> bool>, p: &Point<'_>, ) -> Option<<S as BoxableQueueStorage>::Item>
Find an element satisfying the specified predicate.