Struct taskchampion::DependencyMap
source · pub struct DependencyMap { /* private fields */ }
Expand description
DependencyMap stores information on task dependencies between pending tasks.
This information requires a scan of the working set to generate, so it is typically calculated once and re-used.
Implementations§
source§impl DependencyMap
impl DependencyMap
sourcepub fn dependencies(&self, dep_of: Uuid) -> impl Iterator<Item = Uuid> + '_
pub fn dependencies(&self, dep_of: Uuid) -> impl Iterator<Item = Uuid> + '_
Return an iterator of Uuids on which task deps_of
depends. This is equivalent to
task.get_dependencies()
.
sourcepub fn dependents(&self, dep_on: Uuid) -> impl Iterator<Item = Uuid> + '_
pub fn dependents(&self, dep_on: Uuid) -> impl Iterator<Item = Uuid> + '_
Return an iterator of Uuids of tasks that depend on dep_on
task.get_dependencies()
.
Trait Implementations§
source§impl Debug for DependencyMap
impl Debug for DependencyMap
source§impl PartialEq for DependencyMap
impl PartialEq for DependencyMap
source§fn eq(&self, other: &DependencyMap) -> bool
fn eq(&self, other: &DependencyMap) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DependencyMap
impl StructuralPartialEq for DependencyMap
Auto Trait Implementations§
impl Freeze for DependencyMap
impl RefUnwindSafe for DependencyMap
impl Send for DependencyMap
impl Sync for DependencyMap
impl Unpin for DependencyMap
impl UnwindSafe for DependencyMap
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.