Crate mocker[][src]

Structs

AlternatingMocker

A built-in Mocker, which alternates between uppercase and lowercase.

ClosureMocker

A built-in Mocker, which takes in a closure that returns a boolean. Useful if you don’t feel like implementing the Mocker trait yourself.

RandomMocker

A built-in Mocker, which randomly makes characters uppercase or lowercase.

Traits

Mocker

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.

Functions

mock

Function that performs the mocking. It takes in a string type and a mocker by reference. It will return a String with the mocking performed.