Struct object::read::ReadCacheRange
source · pub struct ReadCacheRange<'a, R: ReadCacheOps> { /* private fields */ }
Expand description
Trait Implementations§
source§impl<'a, R: ReadCacheOps> Clone for ReadCacheRange<'a, R>
impl<'a, R: ReadCacheOps> Clone for ReadCacheRange<'a, R>
source§impl<'a, R: Debug + ReadCacheOps> Debug for ReadCacheRange<'a, R>
impl<'a, R: Debug + ReadCacheOps> Debug for ReadCacheRange<'a, R>
source§impl<'a, R: ReadCacheOps> ReadRef<'a> for ReadCacheRange<'a, R>
impl<'a, R: ReadCacheOps> ReadRef<'a> for ReadCacheRange<'a, R>
source§fn read_bytes_at(self, offset: u64, size: u64) -> Result<&'a [u8], ()>
fn read_bytes_at(self, offset: u64, size: u64) -> Result<&'a [u8], ()>
Get a reference to a
u8
slice at the given offset. Read moresource§fn read_bytes_at_until(
self,
range: Range<u64>,
delimiter: u8,
) -> Result<&'a [u8], ()>
fn read_bytes_at_until( self, range: Range<u64>, delimiter: u8, ) -> Result<&'a [u8], ()>
Get a reference to a delimited
u8
slice which starts at range.start. Read moresource§fn read_bytes(self, offset: &mut u64, size: u64) -> Result<&'a [u8], ()>
fn read_bytes(self, offset: &mut u64, size: u64) -> Result<&'a [u8], ()>
Get a reference to a
u8
slice at the given offset, and update the offset. Read moresource§fn read<T: Pod>(self, offset: &mut u64) -> Result<&'a T, ()>
fn read<T: Pod>(self, offset: &mut u64) -> Result<&'a T, ()>
Get a reference to a
Pod
type at the given offset, and update the offset. Read moresource§fn read_at<T: Pod>(self, offset: u64) -> Result<&'a T, ()>
fn read_at<T: Pod>(self, offset: u64) -> Result<&'a T, ()>
Get a reference to a
Pod
type at the given offset. Read moreimpl<'a, R: ReadCacheOps> Copy for ReadCacheRange<'a, R>
Auto Trait Implementations§
impl<'a, R> Freeze for ReadCacheRange<'a, R>
impl<'a, R> !RefUnwindSafe for ReadCacheRange<'a, R>
impl<'a, R> !Send for ReadCacheRange<'a, R>
impl<'a, R> !Sync for ReadCacheRange<'a, R>
impl<'a, R> Unpin for ReadCacheRange<'a, R>
impl<'a, R> !UnwindSafe for ReadCacheRange<'a, R>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)