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§
Sourcefn from_bytes(raw: &[u8]) -> Result<Self, FitsHeaderError>where
Self: Sized,
fn from_bytes(raw: &[u8]) -> Result<Self, FitsHeaderError>where
Self: Sized,
Attempts to deserialize a data collection from the given bytes.