pub struct GraphNavigator { /* private fields */ }Expand description
依存グラフに基づくアクション選択ヘルパー
現在の探索状態と依存グラフを組み合わせて、 次に実行すべきアクションを推奨する。
Implementations§
pub fn new(graph: DependencyGraph) -> GraphNavigator
Sourcepub fn mark_completed(&mut self, action: &str)
pub fn mark_completed(&mut self, action: &str)
アクションを完了としてマーク
Sourcepub fn suggest_next(&self) -> Vec<String>
pub fn suggest_next(&self) -> Vec<String>
次に実行すべきアクションを取得
- まだ開始していない場合: 開始ノードを返す
- 実行中の場合: 完了したアクションの後続を返す
- 全て完了している場合: 空を返す
Sourcepub fn is_task_complete(&self) -> bool
pub fn is_task_complete(&self) -> bool
タスクが完了したか判定
終端アクションのいずれかが完了していれば true。
Sourcepub fn graph(&self) -> &DependencyGraph
pub fn graph(&self) -> &DependencyGraph
依存グラフへの参照を取得
Trait Implementations§
Source§fn clone(&self) -> GraphNavigator
fn clone(&self) -> GraphNavigator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
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