pub trait SliceAccess {
// Required method
fn slice_mut<T: EndianCodec>(&mut self, z: usize) -> Result<&mut [T], Error>;
}Expand description
Trait for writers that provide direct slice access to voxel data.
§Safety Warning
The caller must ensure the type T matches the file’s voxel mode exactly.
Using the wrong type will produce incorrect data without any runtime error.
For type-safe access, use write_block instead.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl SliceAccess for MmapWriter
Available on crate feature
mmap only.