pub struct SliceLocation<'a> {
pub file: &'a BlockFile,
pub local_index: u32,
pub offset: u64,
pub len: usize,
}Expand description
Where a global slice lives on disk. Returned by BlockMap::global_to_file.
Fields§
§file: &'a BlockFileThe file holding the slice.
local_index: u32Slice index within the file (0-based).
offset: u64Byte offset of the slice within the file.
len: usizeBytes of real data: slice_size, or less for the file’s last slice.
Trait Implementations§
Source§impl<'a> Clone for SliceLocation<'a>
impl<'a> Clone for SliceLocation<'a>
impl<'a> Copy for SliceLocation<'a>
Auto Trait Implementations§
impl<'a> Freeze for SliceLocation<'a>
impl<'a> RefUnwindSafe for SliceLocation<'a>
impl<'a> Send for SliceLocation<'a>
impl<'a> Sync for SliceLocation<'a>
impl<'a> Unpin for SliceLocation<'a>
impl<'a> UnsafeUnpin for SliceLocation<'a>
impl<'a> UnwindSafe for SliceLocation<'a>
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more