pub trait WriteExt {
// Required methods
fn truncate(&mut self, offset: usize) -> Result<()>;
fn allocate(&mut self, offset: usize, size: usize) -> Result<()>;
}Expand description
WriteExt is writer extension api
Required Methods§
fn truncate(&mut self, offset: usize) -> Result<()>
fn allocate(&mut self, offset: usize, size: usize) -> Result<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".