Trait mocker::Mocker[][src]

pub trait Mocker {
    fn uppercase(&mut self) -> bool;
}
Expand description

Trait representing a Mocker. A Mocker is a little utility which has a method which determines if the current letter should be uppercase or not.

Required methods

fn uppercase(&mut self) -> bool[src]

Expand description

Returns true if the current character should be uppercase or not.

Loading content...

Implementors

impl Mocker for AlternatingMocker[src]

fn uppercase(&mut self) -> bool[src]

Toggles the state of the current case and returns the old one.

impl Mocker for RandomMocker[src]

fn uppercase(&mut self) -> bool[src]

Returns a random boolean (which is also the case of the letter)

impl<T: Fn() -> bool> Mocker for ClosureMocker<T>[src]

fn uppercase(&mut self) -> bool[src]

Executes the closure and returns the value.

Loading content...