pub struct Expected<T: ?Sized, P: Predicate<T> + ?Sized> { /* private fields */ }Expand description
Represents the expected type used for formatting.
Returned by the expected method of the PredicateExpected extension trait.
This type delegates the following traits:
fmt::Debugtoexpect_code;fmt::Displaytoexpect.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T, P> Freeze for Expected<T, P>
impl<T, P> RefUnwindSafe for Expected<T, P>
impl<T, P> Send for Expected<T, P>
impl<T, P> Sync for Expected<T, P>
impl<T, P> Unpin for Expected<T, P>
impl<T, P> UnsafeUnpin for Expected<T, P>
impl<T, P> UnwindSafe for Expected<T, P>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Refine for Twhere
T: ?Sized,
impl<T> Refine for Twhere
T: ?Sized,
Source§fn refine_ref<R: Refining<Value = Self> + ?Sized>(
&self,
) -> RecoverableRefinementRef<'_, R>
fn refine_ref<R: Refining<Value = Self> + ?Sized>( &self, ) -> RecoverableRefinementRef<'_, R>
Refines the given value with
R by reference. Read more