[][src]Struct cucumber_rust::StepsBuilder

pub struct StepsBuilder<W> where
    W: World
{ /* fields omitted */ }

Methods

impl<W: World> StepsBuilder<W>[src]

pub fn new() -> StepsBuilder<W>[src]

pub fn given(
    &mut self,
    name: &'static str,
    test_fn: fn(_: &mut W, _: &Step)
) -> &mut Self
[src]

pub fn when(
    &mut self,
    name: &'static str,
    test_fn: fn(_: &mut W, _: &Step)
) -> &mut Self
[src]

pub fn then(
    &mut self,
    name: &'static str,
    test_fn: fn(_: &mut W, _: &Step)
) -> &mut Self
[src]

pub fn given_regex(
    &mut self,
    regex: &'static str,
    test_fn: fn(_: &mut W, _: &[String], _: &Step)
) -> &mut Self
[src]

pub fn when_regex(
    &mut self,
    regex: &'static str,
    test_fn: fn(_: &mut W, _: &[String], _: &Step)
) -> &mut Self
[src]

pub fn then_regex(
    &mut self,
    regex: &'static str,
    test_fn: fn(_: &mut W, _: &[String], _: &Step)
) -> &mut Self
[src]

pub fn add_normal(
    &mut self,
    ty: StepType,
    name: &'static str,
    test_fn: fn(_: &mut W, _: &Step)
) -> &mut Self
[src]

pub fn add_regex(
    &mut self,
    ty: StepType,
    regex: &str,
    test_fn: fn(_: &mut W, _: &[String], _: &Step)
) -> &mut Self
[src]

pub fn build(self) -> Steps<W>[src]

Trait Implementations

impl<W: Default> Default for StepsBuilder<W> where
    W: World
[src]

Auto Trait Implementations

impl<W> !RefUnwindSafe for StepsBuilder<W>

impl<W> Send for StepsBuilder<W>

impl<W> Sync for StepsBuilder<W>

impl<W> Unpin for StepsBuilder<W>

impl<W> !UnwindSafe for StepsBuilder<W>

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, 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.