pub struct MmapWriter { /* private fields */ }Implementations§
Source§impl MmapWriter
impl MmapWriter
pub fn create(path: &str, header: Header) -> Result<Self, Error>
pub fn shape(&self) -> VolumeShape
pub fn write_block<T: EndianCodec + Sync>( &mut self, block: &VoxelBlock<T>, ) -> Result<(), Error>
Sourcepub fn write_block_parallel<T: EndianCodec + Sync>(
&mut self,
block: &VoxelBlock<T>,
) -> Result<(), Error>
pub fn write_block_parallel<T: EndianCodec + Sync>( &mut self, block: &VoxelBlock<T>, ) -> Result<(), Error>
Write a block with parallel encoding to memory-mapped region
Trait Implementations§
Source§impl SliceAccess for MmapWriter
Available on crate feature mmap only.
impl SliceAccess for MmapWriter
Available on crate feature
mmap only.Auto Trait Implementations§
impl Freeze for MmapWriter
impl RefUnwindSafe for MmapWriter
impl Send for MmapWriter
impl Sync for MmapWriter
impl Unpin for MmapWriter
impl UnsafeUnpin for MmapWriter
impl UnwindSafe for MmapWriter
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more