rspolib/traits.rs
1/// Merge entries and files
2pub trait Merge {
3 /// Merge a struct with another of the same type
4 fn merge(&mut self, other: Self);
5}
6
7use std::io::{Read, Seek};
8
9// Implementation to use `read_` and `seek_` methods
10// for different types of readers
11pub(crate) trait SeekRead: Seek + Read {}
12impl<T: Seek + Read> SeekRead for T {}