FitsDataCollection

Trait FitsDataCollection 

Source
pub trait FitsDataCollection: Debug {
    // Required methods
    fn from_bytes(raw: &[u8]) -> Result<Self, FitsHeaderError>
       where Self: Sized;
    fn to_bytes(&self) -> Vec<u8> ;
}
Available on crate feature fits only.
Expand description

A trait that allows data to be serialized/deserialized as the data section of an HDU.

Required Methods§

Source

fn from_bytes(raw: &[u8]) -> Result<Self, FitsHeaderError>
where Self: Sized,

Attempts to deserialize a data collection from the given bytes.

Source

fn to_bytes(&self) -> Vec<u8>

Serializes the data collection to bytes.

Implementations on Foreign Types§

Source§

impl FitsDataCollection for Vec<f32>

Source§

impl FitsDataCollection for Vec<f64>

Source§

impl FitsDataCollection for Vec<i16>

Source§

impl FitsDataCollection for Vec<i32>

Source§

impl FitsDataCollection for Vec<u8>

Implementors§