Operator version of and
Creates a new single-element matcher which combines the results of both this
matcher and that
matcher.
Creates a new single-element matcher which combines the results of both this
matcher and that
matcher.
Both this
and that
will operate on the first element of the stack (as opposed to Chained matchers).
To satisfy covariance on A
The other matcher's result type
The combined result type
The matcher to combine
The TypeReduce
rule for combining the two match results
A new matcher which combines the results of this
and that
Specialization of the default or
method, specifically for SingleElementContextMatchers
Operator version of or
, specialized for SingleElementContextMatchers
(singleElementContextMatcher: StringAdd).self
(singleElementContextMatcher: StringFormat).self
(singleElementContextMatcher: ArrowAssoc[SingleElementContextMatcher[A]]).x
(Since version 2.10.0) Use leftOfArrow
instead
(singleElementContextMatcher: Ensuring[SingleElementContextMatcher[A]]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
Specialization of ContextMatcher which only checks the first element in the stack for matching operations. Transformation operations on single-element matchers will yield other single-element matchers (rather than the base ContextMatcher type). Combination operations involving other single-element matchers will also yield single-element matchers. SingleElementContextMatchers form the building blocks of more complex matchers.
The type of the matched context.