pub struct Image { /* private fields */ }
Implementations§
source§impl Image
impl Image
sourcepub fn get_naxisn(&self, idx: usize) -> Option<&u64>
pub fn get_naxisn(&self, idx: usize) -> Option<&u64>
Get the size of an axis given by the “NAXISX” card
sourcepub fn get_bitpix(&self) -> BitpixValue
pub fn get_bitpix(&self) -> BitpixValue
Get the bitpix value given by the “BITPIX” card
Trait Implementations§
source§impl<'a, R> DataAsyncBufRead<'a, Image> for BufReader<R>where
R: AsyncRead + Debug + 'a + Unpin,
impl<'a, R> DataAsyncBufRead<'a, Image> for BufReader<R>where R: AsyncRead + Debug + 'a + Unpin,
type Data = Data<'a, BufReader<R>>
fn new_data_block(&'a mut self, ctx: &Image) -> 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, Image> for BufReader<R>where
R: Read + Debug + 'a,
impl<'a, R> DataBufRead<'a, Image> for BufReader<R>where R: Read + Debug + 'a,
type Data = Data<'a, BufReader<R>>
fn new_data_block(&'a mut self, ctx: &Image) -> 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, Image> for Cursor<R>where
R: AsRef<[u8]> + Debug + Read + 'a,
impl<'a, R> DataBufRead<'a, Image> for Cursor<R>where R: AsRef<[u8]> + Debug + Read + 'a,
type Data = Data<'a, Cursor<R>>
fn new_data_block(&'a mut self, ctx: &Image) -> 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 PartialEq<Image> for Image
impl PartialEq<Image> for Image
source§impl Xtension for Image
impl Xtension for Image
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] ) -> Result<Self, Error>
fn parse_async<'life0, 'life1, 'life2, 'async_trait, R>( reader: &'life0 mut R, num_bytes_read: &'life1 mut u64, card_80_bytes_buf: &'life2 mut [u8; 80] ) -> 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,
impl StructuralPartialEq for Image
Auto Trait Implementations§
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
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