Skip to main content

take

Function take 

Source
pub fn take(handle: Handle, dst: &mut Vec<u64>)
Available on crate feature pager and Unix only.
Expand description

Consumes handle, writing the entire payload into dst (cleared first), then reclaims storage. Swap fast path: single-chunk handle into empty dst swaps in place, no copy.

Panics on I/O failure. Use try_take to surface the error.