pub struct SlabBytes<'a> {
pub slab_type: SlabType,
pub bytes: &'a [u8],
}Expand description
A reference to a slice of slab bytes, annotated with the slab type.
Returned by ParsedFile::slab_at and friends.
Multi-byte integer/float slabs are always little-endian on disk.
Fields§
§slab_type: SlabTypeThe element type of bytes.
bytes: &'a [u8]Borrowed slab bytes. Length is a multiple of
slab_type.element_size().
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SlabBytes<'a>
impl<'a> RefUnwindSafe for SlabBytes<'a>
impl<'a> Send for SlabBytes<'a>
impl<'a> Sync for SlabBytes<'a>
impl<'a> Unpin for SlabBytes<'a>
impl<'a> UnsafeUnpin for SlabBytes<'a>
impl<'a> UnwindSafe for SlabBytes<'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