Struct cucumber::step::Collection
source · [−]pub struct Collection<World> { /* private fields */ }
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
fn fail_on_skipped_with<F>(self, f: F) -> FailOnSkipped<Self, F> where
F: Fn(&Feature, Option<&Rule>, &Scenario) -> bool,
fn fail_on_skipped_with<F>(self, f: F) -> FailOnSkipped<Self, 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