Struct expectest::prelude::ActualValue [] [src]

pub struct ActualValue<A> {
    // some fields omitted
}

Wrapps an actual value and a location in a source code.

Methods

impl<A> ActualValue<A>
[src]

fn location(self, l: SourceLocation) -> Self

Sets new SourceLocation.

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

Performs assertion with "to" word. Prints a failure message and panics if an actual value does not match with an expected value.

fn to_not<M, E>(self, matcher: M) where M: Matcher<A, E>

Performs negation with "to not" words. Prints a failure message and panics if an actual value matches with an expected value.

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

Performs negation with "not to" words. Prints a failure message and panics if an actual value matches with an expected value.