pub struct PlanSchedule<P: Eq + PartialEq + Ord> {
pub plan_id: u64,
pub time: f64,
pub priority: P,
}
Expand description
A time, id, and priority object used to order plans in the Queue<T>
Entry
objects are sorted in increasing order of time, priority and then
plan id
Fields§
§plan_id: u64
§time: f64
§priority: P
Trait Implementations§
Source§impl<P: Eq + PartialEq + Ord> Ord for PlanSchedule<P>
Entry objects are ordered in increasing order by time, priority, and then
plan id
impl<P: Eq + PartialEq + Ord> Ord for PlanSchedule<P>
Entry objects are ordered in increasing order by time, priority, and then plan id
Source§impl<P: Eq + PartialEq + Ord> PartialOrd for PlanSchedule<P>
impl<P: Eq + PartialEq + Ord> PartialOrd for PlanSchedule<P>
impl<P: Eq + PartialEq + Ord + Copy + Clone> Copy for PlanSchedule<P>
impl<P: Eq + PartialEq + Ord> Eq for PlanSchedule<P>
impl<P: Eq + PartialEq + Ord> StructuralPartialEq for PlanSchedule<P>
Auto Trait Implementations§
impl<P> Freeze for PlanSchedule<P>where
P: Freeze,
impl<P> RefUnwindSafe for PlanSchedule<P>where
P: RefUnwindSafe,
impl<P> Send for PlanSchedule<P>where
P: Send,
impl<P> Sync for PlanSchedule<P>where
P: Sync,
impl<P> Unpin for PlanSchedule<P>where
P: Unpin,
impl<P> UnwindSafe for PlanSchedule<P>where
P: UnwindSafe,
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.