Skip to main content

PredicateExpected

Trait PredicateExpected 

Source
pub trait PredicateExpected<T: ?Sized>: Predicate<T> {
    // Provided method
    fn expected() -> Expected<T, Self> { ... }
}
Expand description

Extends values P implementing Predicate<T> to return Expected<T, P> for formatting.

Provided Methods§

Source

fn expected() -> Expected<T, Self>

Returns the Expected<T, Self> value used for formatting.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T: ?Sized, P: Predicate<T> + ?Sized> PredicateExpected<T> for P