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 copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto 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> !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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)