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