Struct cucumber_rust::Steps[][src]

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

Implementations

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

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

pub fn given_async(
    &mut self,
    name: &'static str,
    test_fn: Rc<dyn Fn(W, Rc<Step>) -> Pin<Box<dyn Future<Output = Result<W, TestError>>>> + UnwindSafe>
) -> &mut Self
[src]

pub fn when_async(
    &mut self,
    name: &'static str,
    test_fn: Rc<dyn Fn(W, Rc<Step>) -> Pin<Box<dyn Future<Output = Result<W, TestError>>>> + UnwindSafe>
) -> &mut Self
[src]

pub fn then_async(
    &mut self,
    name: &'static str,
    test_fn: Rc<dyn Fn(W, Rc<Step>) -> Pin<Box<dyn Future<Output = Result<W, TestError>>>> + UnwindSafe>
) -> &mut Self
[src]

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

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

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

pub fn given_regex_async(
    &mut self,
    name: &'static str,
    test_fn: Rc<dyn Fn(W, Vec<String>, Rc<Step>) -> Pin<Box<dyn Future<Output = Result<W, TestError>>>> + UnwindSafe>
) -> &mut Self
[src]

pub fn when_regex_async(
    &mut self,
    name: &'static str,
    test_fn: Rc<dyn Fn(W, Vec<String>, Rc<Step>) -> Pin<Box<dyn Future<Output = Result<W, TestError>>>> + UnwindSafe>
) -> &mut Self
[src]

pub fn then_regex_async(
    &mut self,
    name: &'static str,
    test_fn: Rc<dyn Fn(W, Vec<String>, Rc<Step>) -> Pin<Box<dyn Future<Output = Result<W, TestError>>>> + UnwindSafe>
) -> &mut Self
[src]

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

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

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

Trait Implementations

impl<W: World> Default for Steps<W>[src]

Auto Trait Implementations

impl<W> !RefUnwindSafe for Steps<W>[src]

impl<W> !Send for Steps<W>[src]

impl<W> !Sync for Steps<W>[src]

impl<W> Unpin for Steps<W>[src]

impl<W> !UnwindSafe for Steps<W>[src]

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.