Add some lightweight documentation.

This commit is contained in:
2018-10-27 15:01:38 -07:00
parent 0bec74b18c
commit 1cb77de521
13 changed files with 79 additions and 7 deletions

View File

@@ -1,7 +1,9 @@
/// Conversion from bytes into the numeric type.
pub trait Decoder {
fn from_bytes(x: &[u8]) -> Self;
}
/// Conversion from the numeric types into a byte buffer.
pub trait Encoder {
fn to_bytes(&self) -> Vec<u8>;
}