Struct fitsrs::hdu::header::extension::asciitable::AsciiTable

source ·
pub struct AsciiTable { /* private fields */ }

Implementations§

source§

impl AsciiTable

source

pub fn get_bitpix(&self) -> BitpixValue

Get the bitpix value given by the “BITPIX” card

source

pub fn get_naxis(&self) -> usize

Get the number of axis given by the “NAXIS” card

source

pub fn get_naxis1(&self) -> u64

Get the size of an axis given by the “NAXISX” card

source

pub fn get_naxis2(&self) -> u64

source

pub fn get_tfields(&self) -> usize

source

pub fn get_tbcols(&self) -> &[u64]

source

pub fn get_tforms(&self) -> &[TFormAsciiTable]

source

pub fn get_pcount(&self) -> usize

Get the pcount value given by the “PCOUNT” card

source

pub fn get_gcount(&self) -> usize

Get the gcount value given by the “PCOUNT” card

Trait Implementations§

source§

impl Clone for AsciiTable

source§

fn clone(&self) -> AsciiTable

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a, R> DataAsyncBufRead<'a, AsciiTable> for BufReader<R>
where R: AsyncRead + Debug + 'a + Unpin,

§

type Data = St<'a, BufReader<R>, u8>

source§

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,

Consume the data to return back the reader at the position of the end of the data block Read more
source§

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>
where R: Read + Debug + 'a,

§

type Data = Iter<'a, BufReader<R>, u8>

source§

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>

Consume the data to return back the reader at the position of the end of the data block Read more
source§

fn read_n_bytes_exact(&mut self, num_bytes_to_read: u64) -> Result<(), Error>

source§

impl<'a, R> DataBufRead<'a, AsciiTable> for Cursor<R>
where R: AsRef<[u8]> + Debug + Read + 'a,

§

type Data = Data<'a, Cursor<R>>

source§

fn new_data_block(&'a mut self, ctx: &AsciiTable) -> Self::Data
where Self: Sized,

source§

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
source§

fn read_n_bytes_exact(&mut self, num_bytes_to_read: u64) -> Result<(), Error>

source§

impl Debug for AsciiTable

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for AsciiTable

source§

fn eq(&self, other: &AsciiTable) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for AsciiTable

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Xtension for AsciiTable

source§

fn get_num_bytes_data_block(&self) -> u64

source§

fn update_with_parsed_header( &mut self, cards: &HashMap<[u8; 8], Value>, ) -> Result<(), Error>

source§

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>

source§

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>>
where R: AsyncRead + Unpin + 'async_trait, Self: Sized + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

source§

impl StructuralPartialEq for AsciiTable

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.