pub struct MockState<T> { /* private fields */ }Expand description
Mock state for testing without reactive system
Implementations§
Source§impl<T> MockState<T>
impl<T> MockState<T>
Sourcepub fn change_count(&self) -> usize
pub fn change_count(&self) -> usize
Get the number of times the value has changed
Sourcepub fn reset_count(&self)
pub fn reset_count(&self)
Reset change count
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for MockState<T>
impl<T> !RefUnwindSafe for MockState<T>
impl<T> !Send for MockState<T>
impl<T> !Sync for MockState<T>
impl<T> Unpin for MockState<T>
impl<T> UnsafeUnpin for MockState<T>
impl<T> !UnwindSafe for MockState<T>
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