vasi/positioned-io

WriteAt should be implemented for &RandomAccessFile

Dr-Emann opened this issue · 2 comments

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.

Same for ReadAt.

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