Skip to main content

try_reserve_aligned_lazy

Function try_reserve_aligned_lazy 

Source
pub fn try_reserve_aligned_lazy(
    size: usize,
    align: usize,
    initial_commit: usize,
) -> Result<LazyReservation, VmemError>
Available on crate feature lazy-commit only.
Expand description

Fallible reserve_aligned_lazy.

Returns a LazyReservation, which carries the commit watermark alongside the span. Callers that keep their own commit bookkeeping take LazyReservation::into_reservation and drive the raw primitives directly.