pub struct Container { /* private fields */ }Expand description
A file’s container, with the charge for its tables.
Implementations§
Source§impl Container
impl Container
Sourcepub fn new(
rows: MeteredVec<ContainerRow>,
preload_table: Option<MeteredVec<Option<PPtr>>>,
) -> Result<Self, ChargeError>
pub fn new( rows: MeteredVec<ContainerRow>, preload_table: Option<MeteredVec<Option<PPtr>>>, ) -> Result<Self, ChargeError>
The rows and preload table a read grew on the input’s meter. A table
with spare capacity moves into an exact allocation that is charged
first (MeteredVec::into_boxed_slice).
Sourcepub fn with_preload_not_a_list(
rows: MeteredVec<ContainerRow>,
) -> Result<Self, ChargeError>
pub fn with_preload_not_a_list( rows: MeteredVec<ContainerRow>, ) -> Result<Self, ChargeError>
The rows, with an m_PreloadTable that is not a list.
Sourcepub fn rows(&self) -> &[ContainerRow]
pub fn rows(&self) -> &[ContainerRow]
Rows in file order.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Container
impl !RefUnwindSafe for Container
impl !UnwindSafe for Container
impl Forget for Container
impl Move for Container
impl Send for Container
impl Sync for Container
impl Unpin for Container
impl UnsafeUnpin for Container
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