pub trait Reader<'r>: Debug + Clone + Copy {
    type Entity: Entity;

    const NAME: &'static str;

    fn verify(slice: &[u8], compatible: bool) -> Result<(), VerificationError>;
    fn new_unchecked(slice: &'r [u8]) -> Self;
    fn as_slice(&self) -> &'r [u8]Notable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8];
    fn to_entity(&self) -> Self::Entity;

    fn from_slice(slice: &'r [u8]) -> Result<Self, VerificationError> { ... }
    fn from_compatible_slice(slice: &'r [u8]) -> Result<Self, VerificationError> { ... }
}

Required Associated Types

Required Associated Constants

Required Methods

Provided Methods

Implementors