Struct cucumber::step::Collection [−][src]
pub struct Collection<World> { /* fields omitted */ }
Implementations
Creates a new empty Collection
.
pub fn find(
&self,
step: &Step
) -> Result<Option<WithContext<'_, World>>, AmbiguousMatchError>
pub fn find(
&self,
step: &Step
) -> Result<Option<WithContext<'_, World>>, AmbiguousMatchError>
Returns a Step
function matching the given gherkin::Step
, if
any.
Errors
If the given gherkin::Step
matches multiple Regex
es.
Trait Implementations
Auto Trait Implementations
impl<World> RefUnwindSafe for Collection<World>
impl<World> Send for Collection<World>
impl<World> Sync for Collection<World>
impl<World> Unpin for Collection<World>
impl<World> UnwindSafe for Collection<World>
Blanket Implementations
Mutably borrows from an owned value. Read more
Asserts this Writer
being Normalized
. Read more
pub fn fail_on_skipped(
Self
) -> FailOnSkipped<T, fn(&Feature, Option<&Rule>, &Scenario) -> bool>
pub fn fail_on_skipped(
Self
) -> FailOnSkipped<T, fn(&Feature, Option<&Rule>, &Scenario) -> bool>
pub fn fail_on_skipped_with<F>(Self, F) -> FailOnSkipped<T, F> where
F: Fn(&Feature, Option<&Rule>, &Scenario) -> bool,
pub fn fail_on_skipped_with<F>(Self, F) -> FailOnSkipped<T, F> where
F: Fn(&Feature, Option<&Rule>, &Scenario) -> bool,
Wraps this Writer
into a discard::Arbitrary
one, providing a
no-op ArbitraryWriter
implementation. Read more
Wraps this Writer
into a discard::Arbitrary
one, providing a
no-op FailureWriter
implementation returning only 0
. Read more