[][src]Struct roadmap::Step

pub struct Step { /* fields omitted */ }

A roadmap step.

See the crate documentation for an example. You probably don't want to create steps manually, but via the roadmap YAML parsing function.

Methods

impl Step[src]

pub fn new(name: &str, label: &str) -> Step[src]

Create a new step with a name and a label.

pub fn name(&self) -> &str[src]

Return the name of a step.

pub fn label(&self) -> &str[src]

Return the label of a step.

pub fn status(&self) -> Status[src]

Return the status of a step.

pub fn set_status(&mut self, status: Status)[src]

Set the status of a step.

pub fn dependencies(&self) -> impl Iterator<Item = &str>[src]

Return vector of names of dependencies for a step.

pub fn add_dependency(&mut self, name: &str)[src]

Add the name of a dependency to step. Steps are referred by name. Steps don't know about other steps, and can't validate that the dependency exists, so this always works.

pub fn depends_on(&self, other: &Step) -> bool[src]

Does this step depend on given other step?

Trait Implementations

impl Clone for Step[src]

impl Debug for Step[src]

impl Display for Step[src]

impl Eq for Step[src]

impl PartialEq<Step> for Step[src]

impl StructuralEq for Step[src]

impl StructuralPartialEq for Step[src]

Auto Trait Implementations

impl RefUnwindSafe for Step

impl Send for Step

impl Sync for Step

impl Unpin for Step

impl UnwindSafe for Step

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.