pub struct Bits { /* private fields */ }Expand description
A bundle’s peek bits (2.6 step 4’s peek table): its top-level row count and a bit per row in directory order, set for a bundle, packed eight to a byte, in a buffer charged to its meter before it is allocated.
Implementations§
Source§impl Bits
impl Bits
Sourcepub fn charged(rows: u32, meter: &Arc<Meter>) -> Result<Self, Class>
pub fn charged(rows: u32, meter: &Arc<Meter>) -> Result<Self, Class>
The bits of rows rows, all clear, charged to meter first: the
buffer a peek fills, or an attempt reads a peek file into.
Sourcepub fn copied(
bits: &Self,
meter: &Arc<Meter>,
hooks: &dyn Hooks,
) -> Result<Self, Failure>
pub fn copied( bits: &Self, meter: &Arc<Meter>, hooks: &dyn Hooks, ) -> Result<Self, Failure>
A copy of bits (as a peek file holds them) in a buffer charged to
meter first, the charge under the refusal probe of hooks: what a
PeekBits loader gives (review round 4’s T2), so a refusal no
budget counted is the stop host_memory there too.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Bits
impl !UnwindSafe for Bits
impl Forget for Bits
impl Freeze for Bits
impl Move for Bits
impl Send for Bits
impl Sync for Bits
impl Unpin for Bits
impl UnsafeUnpin for Bits
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