Module interface

Source
Expand description

The interface module defines the interface for decoders Each and every decoder has the same struct & traits

Structs§

Decoder
The Interface defines what the struct for each decoder looks like
DefaultDecoder
The default implementation for a decoder

Traits§

Crack
All decoders will share the same Crack trait Which let’s us put them into a vector and iterate over them, Running .crack() on each of them. Relevant docs: https://docs.rs/crack/0.3.0/crack/trait.Crack.html

Functions§

check_string_success
Returns a boolean of True if the string is successfully changed So empty strings fail, but non-empty strings succeed and only if the string is different from the original text.