Skip to main content

Expectation

Trait Expectation 

Source
pub trait Expectation<S: ?Sized, D> {
    // Required methods
    fn test(&mut self, subject: &S) -> bool;
    fn message(
        &self,
        expression: &Expression<'_>,
        actual: &S,
        inverted: bool,
        representation: &D,
        format: &DiffFormat,
    ) -> String;
}
Expand description

An expectation defines a test for a property of the asserted subject.

It requires two methods: a test() method and a message() method. The test() method is called to verify whether an actual subject meets the expected property. In case the test of the expectation fails, the message() method is called to form an expectation-specific failure message.

Required Methods§

Source

fn test(&mut self, subject: &S) -> bool

Verifies whether the actual subject fulfills the expected property.

Source

fn message( &self, expression: &Expression<'_>, actual: &S, inverted: bool, representation: &D, format: &DiffFormat, ) -> String

Forms a failure message for this expectation.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<D> Expectation<&char, D> for IsAlphabetic
where D: Represent<char>,

Source§

impl<D> Expectation<&char, D> for IsAlphanumeric
where D: Represent<char>,

Source§

impl<D> Expectation<&char, D> for IsAscii
where D: Represent<char>,

Source§

impl<D> Expectation<&char, D> for IsControlChar
where D: Represent<char>,

Source§

impl<D> Expectation<&char, D> for IsDigit
where D: Represent<char>,

Source§

impl<D> Expectation<&char, D> for IsLowerCase
where D: Represent<char>,

Source§

impl<D> Expectation<&char, D> for IsUpperCase
where D: Represent<char>,

Source§

impl<D> Expectation<&char, D> for IsWhitespace
where D: Represent<char>,

Source§

impl<D> Expectation<Date, D> for IsCloseTo<Date, TemporalMargin>

Available on crate feature jiff only.
Source§

impl<D> Expectation<Date, D> for IsCloseTo<Date, TemporalMargin>

Available on crate feature time only.
Source§

impl<D> Expectation<DateTime, D> for IsCloseTo<DateTime, TemporalMargin>

Available on crate feature jiff only.
Source§

impl<D> Expectation<NaiveDate, D> for IsCloseTo<NaiveDate, TemporalMargin>

Available on crate feature chrono only.
Source§

impl<D> Expectation<NaiveDateTime, D> for IsCloseTo<NaiveDateTime, TemporalMargin>

Available on crate feature chrono only.
Source§

impl<D> Expectation<NaiveTime, D> for IsCloseTo<NaiveTime, TemporalMargin>

Available on crate feature chrono only.
Source§

impl<D> Expectation<OffsetDateTime, D> for IsCloseTo<OffsetDateTime, TemporalMargin>

Available on crate feature time only.
Source§

impl<D> Expectation<PlainDateTime, D> for IsCloseTo<PlainDateTime, TemporalMargin>

Available on crate feature time only.
Source§

impl<D> Expectation<Time, D> for IsCloseTo<Time, TemporalMargin>

Available on crate feature jiff only.
Source§

impl<D> Expectation<Time, D> for IsCloseTo<Time, TemporalMargin>

Available on crate feature time only.
Source§

impl<D> Expectation<Timestamp, D> for IsCloseTo<Timestamp, TemporalMargin>

Available on crate feature jiff only.
Source§

impl<D> Expectation<Timestamp, D> for IsCloseTo<Timestamp, TemporalMargin>

Available on crate feature time only.
Source§

impl<D> Expectation<Zoned, D> for IsCloseTo<Zoned, TemporalMargin>

Available on crate feature jiff only.
Source§

impl<D> Expectation<bool, D> for IsFalse
where D: Represent<bool>,

Source§

impl<D> Expectation<bool, D> for IsTrue
where D: Represent<bool>,

Source§

impl<D> Expectation<char, D> for IsAlphabetic
where D: Represent<char>,

Source§

impl<D> Expectation<char, D> for IsAlphanumeric
where D: Represent<char>,

Source§

impl<D> Expectation<char, D> for IsAscii
where D: Represent<char>,

Source§

impl<D> Expectation<char, D> for IsControlChar
where D: Represent<char>,

Source§

impl<D> Expectation<char, D> for IsDigit
where D: Represent<char>,

Source§

impl<D> Expectation<char, D> for IsLowerCase
where D: Represent<char>,

Source§

impl<D> Expectation<char, D> for IsUpperCase
where D: Represent<char>,

Source§

impl<D> Expectation<char, D> for IsWhitespace
where D: Represent<char>,

Source§

impl<D> Expectation<f32, D> for IsCloseTo<f32, F32Margin>
where D: Represent<f32>,

Available on crate feature float-cmp only.
Source§

impl<D> Expectation<f64, D> for IsCloseTo<f64, F64Margin>
where D: Represent<f64>,

Available on crate feature float-cmp only.
Source§

impl<M, E, D> Expectation<M, D> for MapContainsExactlyKeys<E>

Source§

impl<M, E, D> Expectation<M, D> for MapContainsKey<E>

Source§

impl<M, E, D> Expectation<M, D> for MapContainsKeys<E>

Source§

impl<M, E, D> Expectation<M, D> for MapContainsValue<E>

Source§

impl<M, E, D> Expectation<M, D> for MapContainsValues<E>

Source§

impl<M, E, D> Expectation<M, D> for MapDoesNotContainKeys<E>

Source§

impl<M, E, D> Expectation<M, D> for MapDoesNotContainValues<E>

Source§

impl<S, D, A1: Expectation<S, D>, A2: Expectation<S, D>, A3: Expectation<S, D>, A4: Expectation<S, D>, A5: Expectation<S, D>, A6: Expectation<S, D>, A7: Expectation<S, D>, A8: Expectation<S, D>, A9: Expectation<S, D>, A10: Expectation<S, D>, A11: Expectation<S, D>, A12: Expectation<S, D>> Expectation<S, D> for All<(Rec<A1>, Rec<A2>, Rec<A3>, Rec<A4>, Rec<A5>, Rec<A6>, Rec<A7>, Rec<A8>, Rec<A9>, Rec<A10>, Rec<A11>, Rec<A12>)>

Source§

impl<S, D, A1: Expectation<S, D>, A2: Expectation<S, D>, A3: Expectation<S, D>, A4: Expectation<S, D>, A5: Expectation<S, D>, A6: Expectation<S, D>, A7: Expectation<S, D>, A8: Expectation<S, D>, A9: Expectation<S, D>, A10: Expectation<S, D>, A11: Expectation<S, D>, A12: Expectation<S, D>> Expectation<S, D> for Any<(Rec<A1>, Rec<A2>, Rec<A3>, Rec<A4>, Rec<A5>, Rec<A6>, Rec<A7>, Rec<A8>, Rec<A9>, Rec<A10>, Rec<A11>, Rec<A12>)>

Source§

impl<S, D, A1: Expectation<S, D>, A2: Expectation<S, D>, A3: Expectation<S, D>, A4: Expectation<S, D>, A5: Expectation<S, D>, A6: Expectation<S, D>, A7: Expectation<S, D>, A8: Expectation<S, D>, A9: Expectation<S, D>, A10: Expectation<S, D>, A11: Expectation<S, D>> Expectation<S, D> for All<(Rec<A1>, Rec<A2>, Rec<A3>, Rec<A4>, Rec<A5>, Rec<A6>, Rec<A7>, Rec<A8>, Rec<A9>, Rec<A10>, Rec<A11>)>

Source§

impl<S, D, A1: Expectation<S, D>, A2: Expectation<S, D>, A3: Expectation<S, D>, A4: Expectation<S, D>, A5: Expectation<S, D>, A6: Expectation<S, D>, A7: Expectation<S, D>, A8: Expectation<S, D>, A9: Expectation<S, D>, A10: Expectation<S, D>, A11: Expectation<S, D>> Expectation<S, D> for Any<(Rec<A1>, Rec<A2>, Rec<A3>, Rec<A4>, Rec<A5>, Rec<A6>, Rec<A7>, Rec<A8>, Rec<A9>, Rec<A10>, Rec<A11>)>

Source§

impl<S, D, A1: Expectation<S, D>, A2: Expectation<S, D>, A3: Expectation<S, D>, A4: Expectation<S, D>, A5: Expectation<S, D>, A6: Expectation<S, D>, A7: Expectation<S, D>, A8: Expectation<S, D>, A9: Expectation<S, D>, A10: Expectation<S, D>> Expectation<S, D> for All<(Rec<A1>, Rec<A2>, Rec<A3>, Rec<A4>, Rec<A5>, Rec<A6>, Rec<A7>, Rec<A8>, Rec<A9>, Rec<A10>)>

Source§

impl<S, D, A1: Expectation<S, D>, A2: Expectation<S, D>, A3: Expectation<S, D>, A4: Expectation<S, D>, A5: Expectation<S, D>, A6: Expectation<S, D>, A7: Expectation<S, D>, A8: Expectation<S, D>, A9: Expectation<S, D>, A10: Expectation<S, D>> Expectation<S, D> for Any<(Rec<A1>, Rec<A2>, Rec<A3>, Rec<A4>, Rec<A5>, Rec<A6>, Rec<A7>, Rec<A8>, Rec<A9>, Rec<A10>)>

Source§

impl<S, D, A1: Expectation<S, D>, A2: Expectation<S, D>, A3: Expectation<S, D>, A4: Expectation<S, D>, A5: Expectation<S, D>, A6: Expectation<S, D>, A7: Expectation<S, D>, A8: Expectation<S, D>, A9: Expectation<S, D>> Expectation<S, D> for All<(Rec<A1>, Rec<A2>, Rec<A3>, Rec<A4>, Rec<A5>, Rec<A6>, Rec<A7>, Rec<A8>, Rec<A9>)>

Source§

impl<S, D, A1: Expectation<S, D>, A2: Expectation<S, D>, A3: Expectation<S, D>, A4: Expectation<S, D>, A5: Expectation<S, D>, A6: Expectation<S, D>, A7: Expectation<S, D>, A8: Expectation<S, D>, A9: Expectation<S, D>> Expectation<S, D> for Any<(Rec<A1>, Rec<A2>, Rec<A3>, Rec<A4>, Rec<A5>, Rec<A6>, Rec<A7>, Rec<A8>, Rec<A9>)>

Source§

impl<S, D, A1: Expectation<S, D>, A2: Expectation<S, D>, A3: Expectation<S, D>, A4: Expectation<S, D>, A5: Expectation<S, D>, A6: Expectation<S, D>, A7: Expectation<S, D>, A8: Expectation<S, D>> Expectation<S, D> for All<(Rec<A1>, Rec<A2>, Rec<A3>, Rec<A4>, Rec<A5>, Rec<A6>, Rec<A7>, Rec<A8>)>

Source§

impl<S, D, A1: Expectation<S, D>, A2: Expectation<S, D>, A3: Expectation<S, D>, A4: Expectation<S, D>, A5: Expectation<S, D>, A6: Expectation<S, D>, A7: Expectation<S, D>, A8: Expectation<S, D>> Expectation<S, D> for Any<(Rec<A1>, Rec<A2>, Rec<A3>, Rec<A4>, Rec<A5>, Rec<A6>, Rec<A7>, Rec<A8>)>

Source§

impl<S, D, A1: Expectation<S, D>, A2: Expectation<S, D>, A3: Expectation<S, D>, A4: Expectation<S, D>, A5: Expectation<S, D>, A6: Expectation<S, D>, A7: Expectation<S, D>> Expectation<S, D> for All<(Rec<A1>, Rec<A2>, Rec<A3>, Rec<A4>, Rec<A5>, Rec<A6>, Rec<A7>)>

Source§

impl<S, D, A1: Expectation<S, D>, A2: Expectation<S, D>, A3: Expectation<S, D>, A4: Expectation<S, D>, A5: Expectation<S, D>, A6: Expectation<S, D>, A7: Expectation<S, D>> Expectation<S, D> for Any<(Rec<A1>, Rec<A2>, Rec<A3>, Rec<A4>, Rec<A5>, Rec<A6>, Rec<A7>)>

Source§

impl<S, D, A1: Expectation<S, D>, A2: Expectation<S, D>, A3: Expectation<S, D>, A4: Expectation<S, D>, A5: Expectation<S, D>, A6: Expectation<S, D>> Expectation<S, D> for All<(Rec<A1>, Rec<A2>, Rec<A3>, Rec<A4>, Rec<A5>, Rec<A6>)>

Source§

impl<S, D, A1: Expectation<S, D>, A2: Expectation<S, D>, A3: Expectation<S, D>, A4: Expectation<S, D>, A5: Expectation<S, D>, A6: Expectation<S, D>> Expectation<S, D> for Any<(Rec<A1>, Rec<A2>, Rec<A3>, Rec<A4>, Rec<A5>, Rec<A6>)>

Source§

impl<S, D, A1: Expectation<S, D>, A2: Expectation<S, D>, A3: Expectation<S, D>, A4: Expectation<S, D>, A5: Expectation<S, D>> Expectation<S, D> for All<(Rec<A1>, Rec<A2>, Rec<A3>, Rec<A4>, Rec<A5>)>

Source§

impl<S, D, A1: Expectation<S, D>, A2: Expectation<S, D>, A3: Expectation<S, D>, A4: Expectation<S, D>, A5: Expectation<S, D>> Expectation<S, D> for Any<(Rec<A1>, Rec<A2>, Rec<A3>, Rec<A4>, Rec<A5>)>

Source§

impl<S, D, A1: Expectation<S, D>, A2: Expectation<S, D>, A3: Expectation<S, D>, A4: Expectation<S, D>> Expectation<S, D> for All<(Rec<A1>, Rec<A2>, Rec<A3>, Rec<A4>)>

Source§

impl<S, D, A1: Expectation<S, D>, A2: Expectation<S, D>, A3: Expectation<S, D>, A4: Expectation<S, D>> Expectation<S, D> for Any<(Rec<A1>, Rec<A2>, Rec<A3>, Rec<A4>)>

Source§

impl<S, D, A1: Expectation<S, D>, A2: Expectation<S, D>, A3: Expectation<S, D>> Expectation<S, D> for All<(Rec<A1>, Rec<A2>, Rec<A3>)>

Source§

impl<S, D, A1: Expectation<S, D>, A2: Expectation<S, D>, A3: Expectation<S, D>> Expectation<S, D> for Any<(Rec<A1>, Rec<A2>, Rec<A3>)>

Source§

impl<S, D, A1: Expectation<S, D>, A2: Expectation<S, D>> Expectation<S, D> for All<(Rec<A1>, Rec<A2>)>

Source§

impl<S, D, A1: Expectation<S, D>, A2: Expectation<S, D>> Expectation<S, D> for Any<(Rec<A1>, Rec<A2>)>

Source§

impl<S, D, A1: Expectation<S, D>> Expectation<S, D> for All<(Rec<A1>,)>

Source§

impl<S, D, A1: Expectation<S, D>> Expectation<S, D> for Any<(Rec<A1>,)>

Source§

impl<S, D, E> Expectation<S, D> for IsEqualTo<E>
where S: PartialEq<E>, D: Represent<S> + Represent<E>,

Source§

impl<S, D, R> Expectation<S, D> for HasCharCountInRange<R, usize>

Source§

impl<S, D, const N: usize> Expectation<S, D> for StringContainsAnyOf<&[char; N]>
where S: AsRef<str>, D: Represent<str> + Represent<char>,

Source§

impl<S, D, const N: usize> Expectation<S, D> for StringContainsAnyOf<[char; N]>
where S: AsRef<str>, D: Represent<str> + Represent<char>,

Source§

impl<S, D> Expectation<Code<S>, D> for DoesNotPanic
where S: FnOnce(),

Available on crate feature panic only.
Source§

impl<S, D> Expectation<Code<S>, D> for DoesPanic
where S: FnOnce(),

Available on crate feature panic only.
Source§

impl<S, D> Expectation<S, D> for ErrorHasSource
where S: Error, D: Represent<S>,

Source§

impl<S, D> Expectation<S, D> for ErrorHasSourceMessage
where S: Error, D: Represent<S>,

Source§

impl<S, D> Expectation<S, D> for HasAtLeastCharCount<usize>

Source§

impl<S, D> Expectation<S, D> for HasAtLeastLength<usize>

Source§

impl<S, D> Expectation<S, D> for HasAtMostCharCount<usize>

Source§

impl<S, D> Expectation<S, D> for HasAtMostLength<usize>

Source§

impl<S, D> Expectation<S, D> for HasCharCount<usize>

Source§

impl<S, D> Expectation<S, D> for HasCharCountGreaterThan<usize>

Source§

impl<S, D> Expectation<S, D> for HasCharCountLessThan<usize>

Source§

impl<S, D> Expectation<S, D> for HasLength<usize>

Source§

impl<S, D> Expectation<S, D> for HasLengthGreaterThan<usize>

Source§

impl<S, D> Expectation<S, D> for HasLengthLessThan<usize>

Source§

impl<S, D> Expectation<S, D> for HasPrecisionOf

Source§

impl<S, D> Expectation<S, D> for HasScaleOf

Source§

impl<S, D> Expectation<S, D> for IsANumber
where S: IsNanProperty, D: Represent<S>,

Source§

impl<S, D> Expectation<S, D> for IsEmpty
where S: IsEmptyProperty, D: Represent<S>,

Source§

impl<S, D> Expectation<S, D> for IsFinite
where S: InfinityProperty, D: Represent<S>,

Source§

impl<S, D> Expectation<S, D> for IsInfinite
where S: InfinityProperty, D: Represent<S>,

Source§

impl<S, D> Expectation<S, D> for IsInteger
where S: DecimalProperties, D: Represent<S>,

Source§

impl<S, D> Expectation<S, D> for IsNegative
where S: SignumProperty, D: Represent<S>,

Source§

impl<S, D> Expectation<S, D> for IsOne

Source§

impl<S, D> Expectation<S, D> for IsPositive
where S: SignumProperty, D: Represent<S>,

Source§

impl<S, D> Expectation<S, D> for IsSameAs<S>
where S: PartialEq, D: Represent<S>,

Source§

impl<S, D> Expectation<S, D> for IsZero

Source§

impl<S, D> Expectation<S, D> for StringContains<&str>
where S: AsRef<str>, D: Represent<str>,

Source§

impl<S, D> Expectation<S, D> for StringContains<String>
where S: AsRef<str>, D: Represent<str>,

Source§

impl<S, D> Expectation<S, D> for StringContains<char>
where S: AsRef<str>, D: Represent<str> + Represent<char>,

Source§

impl<S, D> Expectation<S, D> for StringContainsAnyOf<&[char]>
where S: AsRef<str>, D: Represent<str> + Represent<char>,

Source§

impl<S, D> Expectation<S, D> for StringEndsWith<&str>
where S: AsRef<str>, D: Represent<str>,

Source§

impl<S, D> Expectation<S, D> for StringEndsWith<String>
where S: AsRef<str>, D: Represent<str>,

Source§

impl<S, D> Expectation<S, D> for StringEndsWith<char>
where S: AsRef<str>, D: Represent<str> + Represent<char>,

Source§

impl<S, D> Expectation<S, D> for StringMatches<'_>
where S: AsRef<str>,

Available on crate feature regex only.
Source§

impl<S, D> Expectation<S, D> for StringStartsWith<&str>
where S: AsRef<str>, D: Represent<str>,

Source§

impl<S, D> Expectation<S, D> for StringStartsWith<String>
where S: AsRef<str>, D: Represent<str>,

Source§

impl<S, D> Expectation<S, D> for StringStartsWith<char>
where S: AsRef<str>, D: Represent<str> + Represent<char>,

Source§

impl<S, E, D, R> Expectation<S, D> for IsInRange<R, E>
where S: PartialOrd<E>, E: PartialOrd<S>, R: RangeBounds<E>, D: Represent<S> + Represent<E> + Represent<R>,

Source§

impl<S, E, D> Expectation<S, D> for HasDebugString<E>
where S: Debug, E: AsRef<str>,

Source§

impl<S, E, D> Expectation<S, D> for HasDisplayString<E>
where S: Display, E: AsRef<str>,

Source§

impl<S, E, D> Expectation<S, D> for IsAfter<E>
where S: PartialOrd<E>, D: Represent<S> + Represent<E>,

Source§

impl<S, E, D> Expectation<S, D> for IsAtLeast<E>
where S: PartialOrd<E>, D: Represent<S> + Represent<E>,

Source§

impl<S, E, D> Expectation<S, D> for IsAtMost<E>
where S: PartialOrd<E>, D: Represent<S> + Represent<E>,

Source§

impl<S, E, D> Expectation<S, D> for IsBefore<E>
where S: PartialOrd<E>, D: Represent<S> + Represent<E>,

Source§

impl<S, E, D> Expectation<S, D> for IsBetween<E>
where S: PartialOrd<E>, D: Represent<S> + Represent<E>,

Source§

impl<S, E, D> Expectation<S, D> for IsGreaterThan<E>
where S: PartialOrd<E>, D: Represent<S> + Represent<E>,

Source§

impl<S, E, D> Expectation<S, D> for IsIn<E>
where S: PartialEq<E>, D: Represent<S> + Represent<E>,

Source§

impl<S, E, D> Expectation<S, D> for IsLessThan<E>
where S: PartialOrd<E>, D: Represent<S> + Represent<E>,

Source§

impl<S, E, D> Expectation<S, D> for Not<E>
where E: Invertible + Expectation<S, D>,

Source§

impl<S, E, D> Expectation<S, D> for Rec<E>
where E: Expectation<S, D>,

Source§

impl<S, P, D> Expectation<S, D> for Predicate<P>
where P: Fn(&S) -> bool, D: Represent<S>,

Source§

impl<S, R, D> Expectation<S, D> for HasLengthInRange<R, usize>

Source§

impl<T, D> Expectation<&Option<T>, D> for IsNone
where D: Represent<T>,

Source§

impl<T, D> Expectation<&Option<T>, D> for IsSome
where D: Represent<T>,

Source§

impl<T, D> Expectation<Option<T>, D> for IsNone
where D: Represent<T>,

Source§

impl<T, D> Expectation<Option<T>, D> for IsSome
where D: Represent<T>,

Source§

impl<T, D> Expectation<Vec<T>, D> for HasAtLeastNumberOfElements
where D: Represent<T>,

Source§

impl<T, D> Expectation<Vec<T>, D> for HasSingleElement
where D: Represent<T>,

Source§

impl<T, E, D> Expectation<&Option<T>, D> for HasValue<E>
where T: PartialEq<E>, D: Represent<T> + Represent<E>,

Source§

impl<T, E, D> Expectation<&Result<T, E>, D> for IsErr
where D: Represent<T> + Represent<E>,

Source§

impl<T, E, D> Expectation<&Result<T, E>, D> for IsOk
where D: Represent<T> + Represent<E>,

Source§

impl<T, E, D> Expectation<Option<T>, D> for HasValue<E>
where T: PartialEq<E>, D: Represent<T> + Represent<E>,

Source§

impl<T, E, D> Expectation<Result<T, E>, D> for IsErr
where D: Represent<T> + Represent<E>,

Source§

impl<T, E, D> Expectation<Result<T, E>, D> for IsOk
where D: Represent<T> + Represent<E>,

Source§

impl<T, E, D> Expectation<Vec<T>, D> for IteratorContains<E>
where T: PartialEq<E>, D: Represent<T> + Represent<E>,

Source§

impl<T, E, D> Expectation<Vec<T>, D> for IteratorContainsAllInOrder<E>
where T: PartialEq<E>, D: Represent<T> + Represent<E>,

Source§

impl<T, E, D> Expectation<Vec<T>, D> for IteratorContainsAllOf<E>
where T: PartialEq<E>, D: Represent<T> + Represent<E>,

Source§

impl<T, E, D> Expectation<Vec<T>, D> for IteratorContainsAnyOf<E>
where T: PartialEq<E>, D: Represent<T> + Represent<E>,

Source§

impl<T, E, D> Expectation<Vec<T>, D> for IteratorContainsExactly<E>
where T: PartialEq<E>, D: Represent<T> + Represent<E>,

Source§

impl<T, E, D> Expectation<Vec<T>, D> for IteratorContainsExactlyInAnyOrder<E>
where T: PartialEq<E>, D: Represent<T> + Represent<E>,

Source§

impl<T, E, D> Expectation<Vec<T>, D> for IteratorContainsOnly<E>
where T: PartialEq<E>, D: Represent<T> + Represent<E>,

Source§

impl<T, E, D> Expectation<Vec<T>, D> for IteratorContainsOnlyOnce<E>
where T: PartialEq<E>, D: Represent<T> + Represent<E>,

Source§

impl<T, E, D> Expectation<Vec<T>, D> for IteratorContainsSequence<E>
where T: PartialEq<E>, D: Represent<T> + Represent<E>,

Source§

impl<T, E, D> Expectation<Vec<T>, D> for IteratorEndsWith<E>
where T: PartialEq<E>, D: Represent<T> + Represent<E>,

Source§

impl<T, E, D> Expectation<Vec<T>, D> for IteratorStartsWith<E>
where T: PartialEq<E>, D: Represent<T> + Represent<E>,

Source§

impl<T, E, X, D> Expectation<&Result<T, E>, D> for HasError<X>
where E: PartialEq<X>, D: Represent<T> + Represent<E> + Represent<X>,

Source§

impl<T, E, X, D> Expectation<&Result<T, E>, D> for HasValue<X>
where T: PartialEq<X>, D: Represent<T> + Represent<E> + Represent<X>,

Source§

impl<T, E, X, D> Expectation<Result<T, E>, D> for HasError<X>
where E: PartialEq<X>, D: Represent<T> + Represent<E> + Represent<X>,

Source§

impl<T, E, X, D> Expectation<Result<T, E>, D> for HasValue<X>
where T: PartialEq<X>, D: Represent<T> + Represent<E> + Represent<X>,

Source§

impl<T, P, D> Expectation<Vec<T>, D> for AllSatisfy<P>
where P: FnMut(&T) -> bool, D: Represent<T>,

Source§

impl<T, P, D> Expectation<Vec<T>, D> for AnySatisfies<P>
where P: FnMut(&T) -> bool, D: Represent<T>,

Source§

impl<T, P, D> Expectation<Vec<T>, D> for NoneSatisfies<P>
where P: FnMut(&T) -> bool, D: Represent<T>,

Source§

impl<TZ1, TZ2, D> Expectation<DateTime<TZ1>, D> for IsCloseTo<DateTime<TZ2>, TemporalMargin>

Available on crate feature chrono only.