1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
/*!
This crate provides a library for encoding and decoding morse code

This crate's documentation provides some simple examples on how to use it.
*/

#![deny(missing_docs)]

/// The structure that is returned if the encode or decode functions failed.
#[derive(Debug)]
pub struct TranslationError {
    /// Vec of all unsupported characters causing the error.
    pub unsupported_characters: Vec<String>,
    /// The completed parse result. Failed characters have been replaced by `#`
    pub result: String,
}

pub mod encode;
pub mod decode;