Struct cucumber::writer::AssertNormalized [−][src]
pub struct AssertNormalized<W: ?Sized>(_);
Expand description
Wrapper for a Writer
asserting it being Normalized
.
Technically is no-op, only forcing the Writer
to become Normalized
despite it actually doesn’t represent the one.
⚠️ WARNING: Should be used only in case you are absolutely sure, that incoming events will be emitted in a
Normalized
order. For example, in casemax_concurrent_scenarios()
is set to1
.
Implementations
Creates a new no-op AssertNormalized
wrapper forcing Normalized
implementation.
⚠️ WARNING: Should be used only in case you are absolutely sure, that incoming events will be emitted in a
Normalized
order. For example, in casemax_concurrent_scenarios()
is set to1
.
Trait Implementations
Returns number of parsing errors.
Indicates whether there were failures/errors during execution.
CLI options of this Writer
. In case no options should be introduced,
just use cli::Empty
. Read more
Auto Trait Implementations
impl<W: ?Sized> RefUnwindSafe for AssertNormalized<W> where
W: RefUnwindSafe,
impl<W: ?Sized> Send for AssertNormalized<W> where
W: Send,
impl<W: ?Sized> Sync for AssertNormalized<W> where
W: Sync,
impl<W: ?Sized> Unpin for AssertNormalized<W> where
W: Unpin,
impl<W: ?Sized> UnwindSafe for AssertNormalized<W> where
W: UnwindSafe,
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