pub struct BucketSlot {
pub offset: u16,
pub size: u16,
}Expand description
One entry of a bucket’s slot-index table: where a slot’s bytes live inside the bucket and how many bytes they span.
Fields§
§offset: u16Byte offset of the slot’s data, measured from the start of the
bucket (i.e. into the same buffer the bucket header was parsed
from). Per libnsfdb_bucket_read_slots the slot data is addressed
as bucket_data[offset], not relative to the end of the header.
size: u16Size in bytes of the slot’s data.
Trait Implementations§
Source§impl Clone for BucketSlot
impl Clone for BucketSlot
Source§fn clone(&self) -> BucketSlot
fn clone(&self) -> BucketSlot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BucketSlot
Source§impl Debug for BucketSlot
impl Debug for BucketSlot
impl Eq for BucketSlot
Source§impl PartialEq for BucketSlot
impl PartialEq for BucketSlot
Source§fn eq(&self, other: &BucketSlot) -> bool
fn eq(&self, other: &BucketSlot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BucketSlot
Auto Trait Implementations§
impl Freeze for BucketSlot
impl RefUnwindSafe for BucketSlot
impl Send for BucketSlot
impl Sync for BucketSlot
impl Unpin for BucketSlot
impl UnsafeUnpin for BucketSlot
impl UnwindSafe for BucketSlot
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