fits-io 0.1.1

A pure-Rust FITS file handling library inspired by CFITSIO, focused on safety, clarity, and performance.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::bin_table::{BinTable, Row};
use crate::hdu::HDU;
use std::error::Error;
use std::fmt;
use std::prelude::rust_2015::Box;

pub trait AsciiTableHDU: HDU + fmt::Debug + Send + Sync {
    fn read_table(&self) -> Result<BinTable, Box<dyn Error + Send + Sync>>;

    #[cfg(feature = "tokio")]
    fn stream_table_rows(
        &self,
    ) -> Result<futures::stream::BoxStream<'_, Row<'_>>, Box<dyn Error + Send + Sync>>;
}