pub struct TestObserver<V: Debug + PartialEq> { /* private fields */ }Expand description
An observer that can be used to observe values from a HangingGet or
Window instance. The observer must not be observed multiple
times without the value being taken with take_value inbetween each
observation. This prevents overwriting observations without checking
them and simplifies the logic and API surface of this fake.
Implementations§
Trait Implementations§
Source§impl<V: Clone + Debug + PartialEq> Clone for TestObserver<V>
impl<V: Clone + Debug + PartialEq> Clone for TestObserver<V>
Source§fn clone(&self) -> TestObserver<V>
fn clone(&self) -> TestObserver<V>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<V: PartialEq + Debug + PartialEq> PartialEq for TestObserver<V>
impl<V: PartialEq + Debug + PartialEq> PartialEq for TestObserver<V>
Source§fn eq(&self, other: &TestObserver<V>) -> bool
fn eq(&self, other: &TestObserver<V>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<V: Debug + PartialEq> StructuralPartialEq for TestObserver<V>
Auto Trait Implementations§
impl<V> Freeze for TestObserver<V>where
V: Freeze,
impl<V> !RefUnwindSafe for TestObserver<V>
impl<V> !Send for TestObserver<V>
impl<V> !Sync for TestObserver<V>
impl<V> Unpin for TestObserver<V>where
V: Unpin,
impl<V> UnsafeUnpin for TestObserver<V>where
V: UnsafeUnpin,
impl<V> !UnwindSafe for TestObserver<V>
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