pub enum AllocationMode {
Extend,
KeepSize,
}Expand description
How file-space allocation affects the logical file length.
Variants§
Extend
Reserve the range and extend the file to its end if necessary. Existing bytes are preserved and newly exposed bytes read as zero. The file is never shrunk.
KeepSize
Reserve the range without changing the logical file length, including when allocating beyond EOF.
Trait Implementations§
Source§impl Clone for AllocationMode
impl Clone for AllocationMode
impl Copy for AllocationMode
Source§impl Debug for AllocationMode
impl Debug for AllocationMode
Source§impl Default for AllocationMode
impl Default for AllocationMode
impl Eq for AllocationMode
Source§impl PartialEq for AllocationMode
impl PartialEq for AllocationMode
impl StructuralPartialEq for AllocationMode
Auto Trait Implementations§
impl Freeze for AllocationMode
impl RefUnwindSafe for AllocationMode
impl Send for AllocationMode
impl Sync for AllocationMode
impl Unpin for AllocationMode
impl UnsafeUnpin for AllocationMode
impl UnwindSafe for AllocationMode
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