WriteAt should be implemented for &RandomAccessFile
Dr-Emann opened this issue · 2 comments
Dr-Emann commented
Like std::io::Write is implemented for &File, WriteAt should also be implemented for &RandomAccessFile, to allow WriteAt on files without needing a mutable reference.
niklasf commented
Same for ReadAt.
Dr-Emann commented
I think ReadAt is less important, since the functions on ReadAt take &self
anyway. I suppose there should be a blanket impl<R: ReadAt> ReadAt for &R { ... }
, which would also handle RandomAccessFile