Struct mocker::AlternatingMocker [−][src]
pub struct AlternatingMocker { /* fields omitted */ }
Expand description
A built-in Mocker, which alternates between uppercase and lowercase.
Implementations
impl AlternatingMocker
[src]
impl AlternatingMocker
[src]pub fn new() -> Self
[src]
pub fn new() -> Self
[src]Creates a new AlternatingMocker. This by default starts with a lowercase letter, if you wanna control that, use AlternatingMocker::new_from_bool()
.
pub fn new_from_bool(starting_case: bool) -> Self
[src]
pub fn new_from_bool(starting_case: bool) -> Self
[src]Creates a new AlternatingMocker, and allows you to control the case of the starting letter with the parameter.
let mocked = mock(&text, &mut AlternatingMocker::new_from_bool(true));
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AlternatingMocker
impl Send for AlternatingMocker
impl Sync for AlternatingMocker
impl Unpin for AlternatingMocker
impl UnwindSafe for AlternatingMocker
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,