pub struct NoTracker { /* private fields */ }
Expand description
A pseudo tracker which does not track anything.
Implementations§
Source§impl NoTracker
impl NoTracker
Sourcepub const fn new(answer: bool) -> Self
pub const fn new(answer: bool) -> Self
Creates a new pseudo tracker, which will always return the given answer
.
Sourcepub const fn answer(&self) -> bool
pub const fn answer(&self) -> bool
Get the answer which will always be returned by this pseudo tracker.
Sourcepub fn set_answer(&mut self, answer: bool)
pub fn set_answer(&mut self, answer: bool)
Changes the answer which will always be returned by this pseudo tracker.
Trait Implementations§
Source§impl GetSizeTracker for NoTracker
impl GetSizeTracker for NoTracker
impl Copy for NoTracker
Auto Trait Implementations§
impl Freeze for NoTracker
impl RefUnwindSafe for NoTracker
impl Send for NoTracker
impl Sync for NoTracker
impl Unpin for NoTracker
impl UnwindSafe for NoTracker
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