Struct rubbl_fits::FitsParser[][src]

pub struct FitsParser<R: Read + Seek> { /* fields omitted */ }

Parse the headers of a FITS file to allow navigation of its structure.

This struct parses a seekable steam assuming it is in FITS format, building up a view of its overall structure.

Implementations

impl<R: Read + Seek> FitsParser<R>[src]

pub fn new(inner: R) -> Result<Self, Error>[src]

Parse the headers of a FITS file.

pub fn hdus(&self) -> &[ParsedHdu][src]

Get the set of HDUs that comprise this file.

pub fn into_inner(self) -> R[src]

Consume this parser and return the inner stream.

Trait Implementations

impl<R: Clone + Read + Seek> Clone for FitsParser<R>[src]

impl<R: Debug + Read + Seek> Debug for FitsParser<R>[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for FitsParser<R> where
    R: RefUnwindSafe

impl<R> Send for FitsParser<R> where
    R: Send

impl<R> Sync for FitsParser<R> where
    R: Sync

impl<R> Unpin for FitsParser<R> where
    R: Unpin

impl<R> UnwindSafe for FitsParser<R> where
    R: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.