pub trait ReadAt {
// Required method
fn read_at(&self, buf: &mut [u8], offs: u64) -> Result<usize>;
}
Expand description
Read data at an offset
Note that compared to Read::read, ReadAt::read_at does not borrow T mutably as it does not need to modify an internal cursor.
Required Methods§
Implementations on Foreign Types§
Source§impl<'a, T: ReadAt + ?Sized> ReadAt for &'a T
Given a type T that impliments ReadAt, impliment ReadAt for &T and &mut T
impl<'a, T: ReadAt + ?Sized> ReadAt for &'a T
Given a type T that impliments ReadAt, impliment ReadAt for &T and &mut T
Source§impl<'a, T: ReadAt + ?Sized> ReadAt for &'a mut T
Given that type &T impliments ReadAt, impliment ReadAt for &T
impl<'a, T: ReadAt + ?Sized> ReadAt for &'a mut T
Given that type &T impliments ReadAt, impliment ReadAt for &T