deencode 1.0.3

Reverse engineer encoding errors
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// A deencoding engine.
pub trait Engine
{
    /// The name of the engine.
    fn get_name(&self) -> String;

    /// Encode through the engine.
    ///
    /// Failure to encode is allowed.
    fn encode(&self, string: &str) -> Option<Vec<u8>>;

    /// Decode through the engine.
    ///
    /// Failure is not accepted: any encoding charset must be covered by Unicode
    /// and therefore Rust strings.
    fn decode(&self, bytes: &[u8]) -> String;
}