pub struct TaskId {
pub file: PathBuf,
pub index: u32,
}Expand description
The identity of a task: the absolute path of its kizz.md and its index among the
task blocks of that file.
Fields§
§file: PathBufThe absolute path of the task’s kizz.md.
index: u32The index of the task block in the file, counting from zero.
Implementations§
Trait Implementations§
impl Eq for TaskId
Source§impl Ord for TaskId
impl Ord for TaskId
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 PartialOrd for TaskId
impl PartialOrd for TaskId
Source§impl RecordKey for TaskId
impl RecordKey for TaskId
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 TaskId
Auto Trait Implementations§
impl Freeze for TaskId
impl RefUnwindSafe for TaskId
impl Send for TaskId
impl Sync for TaskId
impl Unpin for TaskId
impl UnsafeUnpin for TaskId
impl UnwindSafe for TaskId
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.