pub struct DependentSort<'i, T, G> { /* private fields */ }
Expand description
A topological sort of tasks with dependencies.
Implementations§
Source§impl<'i, T: Display, G: Display + Ord> DependentSort<'i, T, G>
impl<'i, T: Display, G: Display + Ord> DependentSort<'i, T, G>
Sourcepub fn draw_mermaid(&self) -> String
pub fn draw_mermaid(&self) -> String
Draw a mermaid flowchart of the tasks and their dependencies.
Source§impl<'i, T, G> DependentSort<'i, T, G>
impl<'i, T, G> DependentSort<'i, T, G>
Sourcepub fn sort(
&mut self,
) -> Result<Vec<Task<'i, T, G>>, TopologicalError<'i, T, G>>
pub fn sort( &mut self, ) -> Result<Vec<Task<'i, T, G>>, TopologicalError<'i, T, G>>
Sort the tasks and return the sorted tasks.
Sourcepub fn sort_grouped(
&mut self,
) -> Result<Vec<Group<'i, T, G>>, TopologicalError<'i, T, G>>where
G: PartialEq,
pub fn sort_grouped(
&mut self,
) -> Result<Vec<Group<'i, T, G>>, TopologicalError<'i, T, G>>where
G: PartialEq,
Sort the tasks and return the sorted tasks grouped by their group.
Sourcepub fn sort_grouped_hash_specialization(
&mut self,
) -> Result<Vec<Group<'i, T, G>>, TopologicalError<'i, T, G>>
pub fn sort_grouped_hash_specialization( &mut self, ) -> Result<Vec<Group<'i, T, G>>, TopologicalError<'i, T, G>>
Sort the tasks and return the sorted tasks grouped by their group.
Trait Implementations§
Source§impl<'i, T, G> AddAssign<Task<'i, T, G>> for DependentSort<'i, T, G>
impl<'i, T, G> AddAssign<Task<'i, T, G>> for DependentSort<'i, T, G>
Source§fn add_assign(&mut self, task: Task<'i, T, G>)
fn add_assign(&mut self, task: Task<'i, T, G>)
Performs the
+=
operation. Read moreAuto Trait Implementations§
impl<'i, T, G> Freeze for DependentSort<'i, T, G>
impl<'i, T, G> RefUnwindSafe for DependentSort<'i, T, G>where
T: RefUnwindSafe,
G: RefUnwindSafe,
impl<'i, T, G> Send for DependentSort<'i, T, G>
impl<'i, T, G> Sync for DependentSort<'i, T, G>
impl<'i, T, G> Unpin for DependentSort<'i, T, G>
impl<'i, T, G> UnwindSafe for DependentSort<'i, T, G>where
T: RefUnwindSafe,
G: RefUnwindSafe,
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