Struct handy_async::pattern::BoxPattern [] [src]

pub struct BoxPattern<M: Matcher, T>(_);

Boxed pattern.

Trait Implementations

impl<M: Matcher, T> Pattern for BoxPattern<M, T>
[src]

The value type associated to the pattern.

Takes a closure which maps a Result<Self::Value> to a pattern, and creates a pattern which calls that closure on the evaluation result of self. Read more

Takes a closure which maps a value to a pattern, and creates a pattern which calls that closure if the evaluation of self was succeeded. Read more

Takes a closure which maps an error to a pattern, and creates a pattern which calls that closure if the evaluation of self failed. Read more

Takes a pattern other which will be used if the evaluation of self is failed.

Takes a closure which maps a value to another value, and creates a pattern which calls that closure on the evaluated value of self. Read more

Takes two patterns and creates a new pattern over both in sequence. Read more

Creates Repeat pattern to represent an infinite stream of this pattern.

Takes an expected value and creates a pattern which performs a pattern matching and validates that the matched value is equal to the expected one. Read more

Returnes a boxed pattern to match with a matcher M.

impl<M: Matcher, T> AsyncMatch<M> for BoxPattern<M, T>
[src]

The future type which will produce a value Self::Value by matching this pattern and a matcher M. Read more

Creates a future which will produce a Self::Value by matching this pattern and the matcher. Read more

Consumes this pattern and the matcher, returning a stream which will produce a sequence of matched values. Read more