pub struct SpatialRecordChunk { /* private fields */ }Expand description
One owned record plus the memory lease that keeps it inside the hard limit.
The record is borrowed from this wrapper and cannot outlive its reservation. Source-specific buffers may be returned to a recycling pool when the chunk is dropped.
Implementations§
Source§impl SpatialRecordChunk
impl SpatialRecordChunk
Sourcepub fn try_from_reserved(
identity: ChunkIdentity,
record: SpatialRecord,
reservation: MemoryReservation,
) -> RecordsResult<Self>
pub fn try_from_reserved( identity: ChunkIdentity, record: SpatialRecord, reservation: MemoryReservation, ) -> RecordsResult<Self>
Creates a chunk from a reservation acquired before source allocation.
The reservation is shrunk to the record’s allocated column capacity. Construction fails if the source allocated more than it reserved.
Sourcepub const fn identity(&self) -> ChunkIdentity
pub const fn identity(&self) -> ChunkIdentity
Returns the deterministic source identity.
Sourcepub const fn bounds(&self) -> Option<RecordBounds3>
pub const fn bounds(&self) -> Option<RecordBounds3>
Returns optional finite bounds.
Sourcepub const fn tracked_bytes(&self) -> u64
pub const fn tracked_bytes(&self) -> u64
Returns explicitly tracked column-capacity bytes for this chunk.
Sourcepub fn record(&self) -> &SpatialRecord
pub fn record(&self) -> &SpatialRecord
Borrows the owned record while its memory lease remains alive.
Sourcepub const fn reservation(&self) -> &MemoryReservation
pub const fn reservation(&self) -> &MemoryReservation
Returns the exact held reservation.
Trait Implementations§
Source§impl Debug for SpatialRecordChunk
impl Debug for SpatialRecordChunk
Source§impl Drop for SpatialRecordChunk
impl Drop for SpatialRecordChunk
Auto Trait Implementations§
impl Freeze for SpatialRecordChunk
impl RefUnwindSafe for SpatialRecordChunk
impl Send for SpatialRecordChunk
impl Sync for SpatialRecordChunk
impl Unpin for SpatialRecordChunk
impl UnsafeUnpin for SpatialRecordChunk
impl UnwindSafe for SpatialRecordChunk
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