Trait ferrous::dsl::Assertion [] [src]

pub trait Assertion<A> {
    fn to<M: Matcher<A>>(self, matcher: M);
    fn not_to<M: Matcher<A>>(self, matcher: M);
}

Trait for assertion types.

Required Methods

fn to<M: Matcher<A>>(self, matcher: M)

Positive assertion with the given matcher.

fn not_to<M: Matcher<A>>(self, matcher: M)

Negative assertion with the given matcher.

Implementors