Struct dvcompute::simulation::strategy::FCFSStorage [−][src]
pub struct FCFSStorage<T> { /* fields omitted */ }
Expand description
A queue storage based on the FCFS strategy.
Implementations
Trait Implementations
The type of priorities, if push_with_priority
is supported.
Otherwise, it may define the ()
type. Read more
type Item = T
type Item = T
The type of items.
Push an item, or panic if only push_with_priority
is supported.
Push an item with the specified priority, or panic if only push
is supported.
Try to remove an item satisfying the specified predicate and return the item removed.
Detect whether there is an element satisfying the specified predicate in the queue.
Auto Trait Implementations
impl<T> !RefUnwindSafe for FCFSStorage<T>
impl<T> Send for FCFSStorage<T> where
T: Send,
impl<T> !Sync for FCFSStorage<T>
impl<T> Unpin for FCFSStorage<T> where
T: Unpin,
impl<T> UnwindSafe for FCFSStorage<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
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. Read more
type Item = <S as QueueStorage>::Item
type Item = <S as QueueStorage>::Item
The type of items.
Push an item, or panic if only push_with_priority
is supported.
pub fn push_with_priority(
&Self,
<S as BoxableQueueStorage>::Priority,
<S as BoxableQueueStorage>::Item,
&Point<'_>
)
pub fn push_with_priority(
&Self,
<S as BoxableQueueStorage>::Priority,
<S as BoxableQueueStorage>::Item,
&Point<'_>
)
Push an item with the specified priority, or panic if only push
is supported.
pub fn remove_boxed_by(
&Self,
Box<dyn Fn(&<S as BoxableQueueStorage>::Item) + 'static, Global>,
&Point<'_>
) -> Option<<S as BoxableQueueStorage>::Item>
pub fn remove_boxed_by(
&Self,
Box<dyn Fn(&<S as BoxableQueueStorage>::Item) + 'static, Global>,
&Point<'_>
) -> Option<<S as BoxableQueueStorage>::Item>
Try to remove an item satisfying the specified predicate and return the item removed.
pub fn exists_boxed(
&Self,
Box<dyn Fn(&<S as BoxableQueueStorage>::Item) + 'static, Global>,
&Point<'_>
) -> bool
pub fn exists_boxed(
&Self,
Box<dyn Fn(&<S as BoxableQueueStorage>::Item) + 'static, Global>,
&Point<'_>
) -> bool
Detect whether there is an element satisfying the specified predicate in the queue.
pub fn find_boxed(
&Self,
Box<dyn Fn(&<S as BoxableQueueStorage>::Item) + 'static, Global>,
&Point<'_>
) -> Option<<S as BoxableQueueStorage>::Item> where
<S as BoxableQueueStorage>::Item: Clone,
pub fn find_boxed(
&Self,
Box<dyn Fn(&<S as BoxableQueueStorage>::Item) + 'static, Global>,
&Point<'_>
) -> Option<<S as BoxableQueueStorage>::Item> where
<S as BoxableQueueStorage>::Item: Clone,
Find an element satisfying the specified predicate.