[−][src]Crate small_morse
Iterators over text in morse code.
fn wait_for(duration: u8) { // ... } fn beep_for(duration: u8) { // ... } for action in small_morse::encode("Hello in morse code!") { if action.state == small_morse::State::On { beep_for(action.duration); } else { wait_for(action.duration); } }
This library is for encoding text into morse code (not the other way around yet).
It works without the standard library.
Structs
Action | An |
MorseIter | A |
Enums
DelayType |
|
State | Within an |
Functions
encode | Creates an iterator over the |