pub struct CubeWriter { /* private fields */ }Expand description
An output cube held open while channels are written, so cfitsio writes the
data unit once, on CubeWriter::finish. Use from a single thread.
Implementations§
Source§impl CubeWriter
impl CubeWriter
Sourcepub fn create(
input_path: &Path,
output_path: &Path,
target_beams: &[Option<Beam>],
mode: CubeMode,
meta: &CubeMeta,
) -> Result<Self, CubeError>
pub fn create( input_path: &Path, output_path: &Path, target_beams: &[Option<Beam>], mode: CubeMode, meta: &CubeMeta, ) -> Result<Self, CubeError>
Create output_path with the header of input_path and the beam
keywords for target_beams.
pub fn write_channel<T: CubeElem>( &mut self, chan: usize, data: &Array2<T>, meta: &CubeMeta, ) -> Result<(), CubeError>
Auto Trait Implementations§
impl !Send for CubeWriter
impl !Sync for CubeWriter
impl Freeze for CubeWriter
impl RefUnwindSafe for CubeWriter
impl Unpin for CubeWriter
impl UnsafeUnpin for CubeWriter
impl UnwindSafe for CubeWriter
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