pub struct FitsWriter<W: Write = BufWriter<File>> { /* private fields */ }Expand description
A multi-HDU FITS file open for writing, over any Write sink (a file by default,
or an in-memory buffer — handy on wasm32, which has no filesystem).
Append image HDUs with FitsWrite::append_fits, then call FitsWriter::finish
to flush and recover the sink.
Implementations§
Source§impl<W: Write> FitsWriter<W>
impl<W: Write> FitsWriter<W>
Auto Trait Implementations§
impl<W> Freeze for FitsWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for FitsWriter<W>where
W: RefUnwindSafe,
impl<W> Send for FitsWriter<W>where
W: Send,
impl<W> Sync for FitsWriter<W>where
W: Sync,
impl<W> Unpin for FitsWriter<W>where
W: Unpin,
impl<W> UnsafeUnpin for FitsWriter<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for FitsWriter<W>where
W: UnwindSafe,
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