pub struct NetcdfWriter { /* private fields */ }Expand description
NetCDF-3 file writer.
Because netcdf3::FileWriter is !Send (uses Rc internally), we cannot
store it as a field on a Send + Sync struct. Instead we buffer frame data
in memory and materialise the FileWriter only inside close_file(), where
it is created, used, and dropped within a single method call. The same
approach is used for read_file() with FileReader.
Implementations§
Source§impl NetcdfWriter
impl NetcdfWriter
Trait Implementations§
Source§impl NDFileWriter for NetcdfWriter
impl NDFileWriter for NetcdfWriter
fn open_file( &mut self, path: &Path, _mode: NDFileMode, _array: &NDArray, ) -> ADResult<()>
fn write_file(&mut self, array: &NDArray) -> ADResult<()>
fn close_file(&mut self) -> ADResult<()>
fn read_file(&mut self) -> ADResult<NDArray>
fn supports_multiple_arrays(&self) -> bool
Auto Trait Implementations§
impl Freeze for NetcdfWriter
impl RefUnwindSafe for NetcdfWriter
impl Send for NetcdfWriter
impl Sync for NetcdfWriter
impl Unpin for NetcdfWriter
impl UnsafeUnpin for NetcdfWriter
impl UnwindSafe for NetcdfWriter
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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