pub struct Path<T>where
T: From<i8> + Clone + Copy + Sub<Output = T> + Add<Output = T> + Display + Debug + PartialOrd + AddAssign,{ /* private fields */ }
Expand description
Represents a path of tasks. It is a copy of an original path in the graph.
Implementations§
Source§impl<T> Path<T>
impl<T> Path<T>
pub fn new() -> Self
pub fn new_from_vec(_tasks: Vec<CustomTask<T>>) -> Self
pub fn add_task(&mut self, task: &CustomTask<T>)
pub fn join_path(&mut self, path: &Path<T>)
Sourcepub fn get_total_float(&self) -> T
pub fn get_total_float(&self) -> T
Gets the total float of the path. If the total float is zero, than the path is probably a critical path.
Sourcepub fn reverse_tasks(&mut self)
pub fn reverse_tasks(&mut self)
Reverse the order of the tasks in the path. It does not change the order of the tasks in the Scheduler!
Sourcepub fn get_path_string(&self) -> String
pub fn get_path_string(&self) -> String
Returns a text that shows the order of tasks in the path.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Path<T>
impl<T> RefUnwindSafe for Path<T>where
T: RefUnwindSafe,
impl<T> Send for Path<T>where
T: Send,
impl<T> Sync for Path<T>where
T: Sync,
impl<T> Unpin for Path<T>where
T: Unpin,
impl<T> UnwindSafe for Path<T>where
T: UnwindSafe,
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