[−][src]Struct roadmap::Step
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 Eq for Step
[src]
impl PartialEq<Step> for Step
[src]
impl Debug for Step
[src]
Auto Trait Implementations
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl RefUnwindSafe for Step
impl UnwindSafe for Step
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,