Struct fitsrs::hdu::header::extension::asciitable::AsciiTable
source · pub struct AsciiTable { /* private fields */ }
Implementations§
source§impl AsciiTable
impl AsciiTable
sourcepub fn get_bitpix(&self) -> BitpixValue
pub fn get_bitpix(&self) -> BitpixValue
Get the bitpix value given by the “BITPIX” card
sourcepub fn get_naxis1(&self) -> u64
pub fn get_naxis1(&self) -> u64
Get the size of an axis given by the “NAXISX” card
pub fn get_naxis2(&self) -> u64
pub fn get_tfields(&self) -> usize
pub fn get_tbcols(&self) -> &[u64]
pub fn get_tforms(&self) -> &[TFormAsciiTable]
sourcepub fn get_pcount(&self) -> usize
pub fn get_pcount(&self) -> usize
Get the pcount value given by the “PCOUNT” card
sourcepub fn get_gcount(&self) -> usize
pub fn get_gcount(&self) -> usize
Get the gcount value given by the “PCOUNT” card
Trait Implementations§
source§impl Clone for AsciiTable
impl Clone for AsciiTable
source§fn clone(&self) -> AsciiTable
fn clone(&self) -> AsciiTable
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a, R> DataAsyncBufRead<'a, AsciiTable> for BufReader<R>
impl<'a, R> DataAsyncBufRead<'a, AsciiTable> for BufReader<R>
type Data = St<'a, BufReader<R>, u8>
fn new_data_block(&'a mut self, ctx: &AsciiTable) -> Self::Data
source§fn consume_data_block<'life0, 'async_trait>(
data: Self::Data,
num_bytes_read: &'life0 mut u64,
) -> Pin<Box<dyn Future<Output = Result<&'a mut Self, Error>> + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn consume_data_block<'life0, 'async_trait>(
data: Self::Data,
num_bytes_read: &'life0 mut u64,
) -> Pin<Box<dyn Future<Output = Result<&'a mut Self, Error>> + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
Consume the data to return back the reader at the position
of the end of the data block Read more
fn read_n_bytes_exact<'life0, 'async_trait>(
&'life0 mut self,
num_bytes_to_read: u64,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
source§impl<'a, R> DataBufRead<'a, AsciiTable> for BufReader<R>
impl<'a, R> DataBufRead<'a, AsciiTable> for BufReader<R>
type Data = Iter<'a, BufReader<R>, u8>
fn new_data_block(&'a mut self, ctx: &AsciiTable) -> Self::Data
source§fn consume_data_block(
data: Self::Data,
num_bytes_read: &mut u64,
) -> Result<&'a mut Self, Error>
fn consume_data_block( data: Self::Data, num_bytes_read: &mut u64, ) -> Result<&'a mut Self, Error>
Consume the data to return back the reader at the position
of the end of the data block Read more
fn read_n_bytes_exact(&mut self, num_bytes_to_read: u64) -> Result<(), Error>
source§impl<'a, R> DataBufRead<'a, AsciiTable> for Cursor<R>
impl<'a, R> DataBufRead<'a, AsciiTable> for Cursor<R>
type Data = Data<'a, Cursor<R>>
fn new_data_block(&'a mut self, ctx: &AsciiTable) -> Self::Datawhere
Self: Sized,
source§fn consume_data_block(
data: Self::Data,
num_bytes_read: &mut u64,
) -> Result<&'a mut Self, Error>
fn consume_data_block( data: Self::Data, num_bytes_read: &mut u64, ) -> Result<&'a mut Self, Error>
Consume the data to return back the reader at the position
of the end of the data block Read more
fn read_n_bytes_exact(&mut self, num_bytes_to_read: u64) -> Result<(), Error>
source§impl Debug for AsciiTable
impl Debug for AsciiTable
source§impl PartialEq for AsciiTable
impl PartialEq for AsciiTable
source§fn eq(&self, other: &AsciiTable) -> bool
fn eq(&self, other: &AsciiTable) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AsciiTable
impl Serialize for AsciiTable
source§impl Xtension for AsciiTable
impl Xtension for AsciiTable
fn get_num_bytes_data_block(&self) -> u64
fn update_with_parsed_header( &mut self, cards: &HashMap<[u8; 8], Value>, ) -> Result<(), Error>
fn parse<R: Read>( reader: &mut R, num_bytes_read: &mut u64, card_80_bytes_buf: &mut [u8; 80], _cards: &mut HashMap<[u8; 8], Value>, ) -> Result<Self, Error>
fn parse_async<'life0, 'life1, 'life2, 'life3, 'async_trait, R>( reader: &'life0 mut R, num_bytes_read: &'life1 mut u64, card_80_bytes_buf: &'life2 mut [u8; 80], _cards: &'life3 mut HashMap<[u8; 8], Value>, ) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + 'async_trait>>
impl StructuralPartialEq for AsciiTable
Auto Trait Implementations§
impl Freeze for AsciiTable
impl RefUnwindSafe for AsciiTable
impl Send for AsciiTable
impl Sync for AsciiTable
impl Unpin for AsciiTable
impl UnwindSafe for AsciiTable
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)