[−][src]Struct cucumber_rust::StepsBuilder
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]
&mut self,
name: &'static str,
test_fn: fn(_: &mut W, _: &Step)
) -> &mut Self
pub fn when(
&mut self,
name: &'static str,
test_fn: fn(_: &mut W, _: &Step)
) -> &mut Self
[src]
&mut self,
name: &'static str,
test_fn: fn(_: &mut W, _: &Step)
) -> &mut Self
pub fn then(
&mut self,
name: &'static str,
test_fn: fn(_: &mut W, _: &Step)
) -> &mut Self
[src]
&mut self,
name: &'static str,
test_fn: fn(_: &mut W, _: &Step)
) -> &mut Self
pub fn given_regex(
&mut self,
regex: &'static str,
test_fn: fn(_: &mut W, _: &[String], _: &Step)
) -> &mut Self
[src]
&mut self,
regex: &'static str,
test_fn: fn(_: &mut W, _: &[String], _: &Step)
) -> &mut Self
pub fn when_regex(
&mut self,
regex: &'static str,
test_fn: fn(_: &mut W, _: &[String], _: &Step)
) -> &mut Self
[src]
&mut self,
regex: &'static str,
test_fn: fn(_: &mut W, _: &[String], _: &Step)
) -> &mut Self
pub fn then_regex(
&mut self,
regex: &'static str,
test_fn: fn(_: &mut W, _: &[String], _: &Step)
) -> &mut Self
[src]
&mut self,
regex: &'static str,
test_fn: fn(_: &mut W, _: &[String], _: &Step)
) -> &mut Self
pub fn add_normal(
&mut self,
ty: StepType,
name: &'static str,
test_fn: fn(_: &mut W, _: &Step)
) -> &mut Self
[src]
&mut self,
ty: StepType,
name: &'static str,
test_fn: fn(_: &mut W, _: &Step)
) -> &mut Self
pub fn add_regex(
&mut self,
ty: StepType,
regex: &str,
test_fn: fn(_: &mut W, _: &[String], _: &Step)
) -> &mut Self
[src]
&mut self,
ty: StepType,
regex: &str,
test_fn: fn(_: &mut W, _: &[String], _: &Step)
) -> &mut Self
pub fn build(self) -> Steps<W>
[src]
Trait Implementations
impl<W: Default> Default for StepsBuilder<W> where
W: World,
[src]
W: World,
fn default() -> StepsBuilder<W>
[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]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,