pub struct Phase {
pub name: String,
pub tasks: Vec<Task>,
pub id_format: IdFormat,
}Fields§
§name: String§tasks: Vec<Task>§id_format: IdFormatID format used for this phase (default: Sequential for backwards compatibility)
Implementations§
Source§impl Phase
impl Phase
pub fn new(name: String) -> Self
pub fn add_task(&mut self, task: Task)
pub fn get_task(&self, task_id: &str) -> Option<&Task>
pub fn get_task_mut(&mut self, task_id: &str) -> Option<&mut Task>
pub fn remove_task(&mut self, task_id: &str) -> Option<Task>
pub fn get_stats(&self) -> PhaseStats
Sourcepub fn get_actionable_tasks(&self) -> Vec<&Task>
pub fn get_actionable_tasks(&self) -> Vec<&Task>
Get actionable tasks (not expanded, not subtasks of incomplete parents)
Sourcepub fn find_next_task(&self) -> Option<&Task>
pub fn find_next_task(&self) -> Option<&Task>
Find next task using only local phase tasks for dependency checking. For cross-tag dependency support, use find_next_task_cross_tag instead.
Sourcepub fn find_next_task_cross_tag<'a>(
&'a self,
all_tasks: &[&Task],
) -> Option<&'a Task>
pub fn find_next_task_cross_tag<'a>( &'a self, all_tasks: &[&Task], ) -> Option<&'a Task>
Find next task with cross-tag dependency support. Pass flattened tasks from all phases for proper dependency resolution.
pub fn get_tasks_needing_expansion(&self) -> Vec<&Task>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Phase
impl<'de> Deserialize<'de> for Phase
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Phase
impl RefUnwindSafe for Phase
impl Send for Phase
impl Sync for Phase
impl Unpin for Phase
impl UnwindSafe for Phase
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more