pub struct Fits { /* private fields */ }
Expand description
Represent an open FITS file.
Implement caching. Thread-safe.
Implementations
sourceimpl Fits
impl Fits
sourcepub fn open<P: AsRef<Path>>(path: P) -> Result<Fits, Error>
pub fn open<P: AsRef<Path>>(path: P) -> Result<Fits, Error>
Open FITS file given in provided path (read-only).
sourcepub fn iter_mut(&mut self) -> FitsIterMut<'_> ⓘ
pub fn iter_mut(&mut self) -> FitsIterMut<'_> ⓘ
Iterate over mutable references to Hdu
s.
sourcepub fn load_all(&self)
pub fn load_all(&self)
Force-read the whole FITS file and cache it.
Beware of the size of the file you are loading before doing that.
sourcepub fn get(&self, index: usize) -> Option<&Hdu>
pub fn get(&self, index: usize) -> Option<&Hdu>
Get reference to Hdu
by index. Use 0
for primary HDU.
sourcepub fn get_mut(&mut self, index: usize) -> Option<&mut Hdu>
pub fn get_mut(&mut self, index: usize) -> Option<&mut Hdu>
Get mutable reference to Hdu
by index. Use 0
for primary HDU.
sourcepub fn get_by_name(&self, index: &str) -> Option<&Hdu>
pub fn get_by_name(&self, index: &str) -> Option<&Hdu>
Get reference to Hdu
by EXTNAME
. Defined in FIST standard 5.4.2.6
sourcepub fn get_mut_by_name(&mut self, index: &str) -> Option<&mut Hdu>
pub fn get_mut_by_name(&mut self, index: &str) -> Option<&mut Hdu>
Get mutable reference to Hdu
by EXTNAME
. Defined in FIST standard 5.4.2.6
Trait Implementations
sourceimpl<'a> IntoIterator for &'a Fits
impl<'a> IntoIterator for &'a Fits
Auto Trait Implementations
impl RefUnwindSafe for Fits
impl Send for Fits
impl Sync for Fits
impl Unpin for Fits
impl UnwindSafe for Fits
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more