pub enum MethodsToMockStrategy {
All,
AllVirtual,
OnlyPureVirtual,
}Expand description
Enum to control which methods to mock in a class.
Variants§
All
Mock all methods, including non-virtual ones.
AllVirtual
Mock only virtual methods, including pure virtual ones.
OnlyPureVirtual
Mock only pure virtual methods.
Trait Implementations§
Source§impl Clone for MethodsToMockStrategy
impl Clone for MethodsToMockStrategy
Source§fn clone(&self) -> MethodsToMockStrategy
fn clone(&self) -> MethodsToMockStrategy
Returns a duplicate 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 moreSource§impl Debug for MethodsToMockStrategy
impl Debug for MethodsToMockStrategy
impl Copy for MethodsToMockStrategy
Auto Trait Implementations§
impl Freeze for MethodsToMockStrategy
impl RefUnwindSafe for MethodsToMockStrategy
impl Send for MethodsToMockStrategy
impl Sync for MethodsToMockStrategy
impl Unpin for MethodsToMockStrategy
impl UnwindSafe for MethodsToMockStrategy
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