use std::io::{Read, Write}; pub trait ArchiveFile { type Info; fn info() -> Self::Info; } pub trait ArchiveFileRead: Read + ArchiveFile {} pub trait ArchiveFileWrite: Write + ArchiveFile {}