pub struct PositionKey {
pub task: TaskId,
pub position: u32,
}Expand description
The key of a step position: a task and the position of a step in its run.
Fields§
§task: TaskIdThe task.
position: u32The position of the step in the task’s run, counting from zero.
Trait Implementations§
Source§impl Clone for PositionKey
impl Clone for PositionKey
Source§impl Debug for PositionKey
impl Debug for PositionKey
impl Eq for PositionKey
Source§impl Hash for PositionKey
impl Hash for PositionKey
Source§impl Ord for PositionKey
impl Ord for PositionKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PositionKey
impl PartialEq for PositionKey
Source§impl PartialOrd for PositionKey
impl PartialOrd for PositionKey
Source§impl RecordKey for PositionKey
impl RecordKey for PositionKey
Source§fn encode_key(&self, out: &mut Vec<u8>)
fn encode_key(&self, out: &mut Vec<u8>)
Appends the key’s bytes to
out.Source§fn decode_key(bytes: &[u8]) -> Option<Self>
fn decode_key(bytes: &[u8]) -> Option<Self>
The key from its bytes, or
None when they are not a key of this type.impl StructuralPartialEq for PositionKey
Auto Trait Implementations§
impl Freeze for PositionKey
impl RefUnwindSafe for PositionKey
impl Send for PositionKey
impl Sync for PositionKey
impl Unpin for PositionKey
impl UnsafeUnpin for PositionKey
impl UnwindSafe for PositionKey
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
Compare self to
key and return true if they are equal.