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>
PlanSchedule objects are sorted in increasing order of time, priority and then
plan id
Fields§
§plan_id: u64§time: f64§priority: PTrait 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§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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.§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.