11 lines
161 B
Rust
11 lines
161 B
Rust
#[cfg(test)]
|
|
mod tests;
|
|
|
|
pub trait Encode {
|
|
fn encode(&self) -> [usize; 4];
|
|
}
|
|
|
|
pub trait Decode: Sized {
|
|
fn decode(words: [usize; 4]) -> Option<Self>;
|
|
}
|