Struct fitrs::Fits

source ·
pub struct Fits { /* private fields */ }
Expand description

Represent an open FITS file.

Implement caching. Thread-safe.

Implementations

Open FITS file given in provided path (read-only).

Iterate over references to Hdus.

Iterate over mutable references to Hdus.

Force-read the whole FITS file and cache it.

Beware of the size of the file you are loading before doing that.

Get reference to Hdu by index. Use 0 for primary HDU.

Get mutable reference to Hdu by index. Use 0 for primary HDU.

Get reference to Hdu by EXTNAME. Defined in FIST standard 5.4.2.6

Get mutable reference to Hdu by EXTNAME. Defined in FIST standard 5.4.2.6

Creates a FITS file at the given path with the provided Hdu as primary HDU.

The file and its content are immediately written on disk.

Push an extension HDU and update the FITS file on disk.

Currently defaults to creating an IMAGE HDU.

Trait Implementations

Formats the value using the given formatter. Read more

We must release the Hdu cache!

Executes the destructor for this type. Read more

Hdu with provided EXTNAME.

Get Hdu by EXTNAME. Panic if EXTNAME is not found. Prefer Fits::get_by_name if you need to check.

Hdu at index.

Get Hdu by index. Panic if index is larger than the number of Hdus. Prefer Fits::get if you need to check.

Get mutable Hdu by EXTNAME. Panic if EXTNAME is not found. Prefer Fits::get_mut_by_name if you need to check.

Get mutable Hdu by index. Panic if index is larger than the number of Hdus. Prefer Fits::get_mut if you need to check.

The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.