pub struct Constraint<C>(/* private fields */);Expand description
Records calls performed on a trackable type.
Allows to validate that a different instance of the trackable type yields the same outputs for the recorded calls.
The constraint can be hooked up to a tracked type through
Track::track_with.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<C> !Freeze for Constraint<C>
impl<C> !RefUnwindSafe for Constraint<C>
impl<C> Send for Constraint<C>where
C: Send,
impl<C> Sync for Constraint<C>where
C: Send,
impl<C> Unpin for Constraint<C>where
C: Unpin,
impl<C> UnwindSafe for Constraint<C>where
C: UnwindSafe,
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