pub struct Task<'i, T, G> {
pub id: &'i T,
pub group: Option<&'i G>,
pub dependent_tasks: Vec<&'i T>,
}
Expand description
A task or type who has dependencies and optionally belongs to a group.
Fields§
§id: &'i T
The unique identifier of the task.
group: Option<&'i G>
The group to which the task belongs.
dependent_tasks: Vec<&'i T>
The tasks that this task depends on.
Implementations§
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 moreSource§impl<'i, T, G> Ord for Task<'i, T, G>where
T: Ord,
impl<'i, T, G> Ord for Task<'i, T, G>where
T: Ord,
Source§impl<'i, T, G> PartialOrd for Task<'i, T, G>where
T: PartialOrd,
impl<'i, T, G> PartialOrd for Task<'i, T, G>where
T: PartialOrd,
impl<'i, T, G> Eq for Task<'i, T, G>where
T: Eq,
Auto Trait Implementations§
impl<'i, T, G> Freeze for Task<'i, T, G>
impl<'i, T, G> RefUnwindSafe for Task<'i, T, G>where
T: RefUnwindSafe,
G: RefUnwindSafe,
impl<'i, T, G> Send for Task<'i, T, G>
impl<'i, T, G> Sync for Task<'i, T, G>
impl<'i, T, G> Unpin for Task<'i, T, G>
impl<'i, T, G> UnwindSafe for Task<'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