pub trait BlockSize {
type Block: AsRef<[u8]> + AsMut<[u8]>;
// Required methods
fn bytes(&self) -> usize;
fn zeroed_block(&self) -> Self::Block;
// Provided method
fn bytes_u64(&self) -> u64 { ... }
}
pub trait BlockSize {
type Block: AsRef<[u8]> + AsMut<[u8]>;
// Required methods
fn bytes(&self) -> usize;
fn zeroed_block(&self) -> Self::Block;
// Provided method
fn bytes_u64(&self) -> u64 { ... }
}