Trait mzdata::spectrum::bindata::BuildFromArrayMap

source ·
pub trait BuildFromArrayMap: Sized {
    // Required method
    fn try_from_arrays(
        arrays: &BinaryArrayMap,
    ) -> Result<Vec<Self>, ArrayRetrievalError>;

    // Provided methods
    fn arrays_required() -> Option<Vec<ArrayType>> { ... }
    fn from_arrays(arrays: &BinaryArrayMap) -> Vec<Self> { ... }
    fn has_arrays_for(arrays: &BinaryArrayMap) -> ArraysAvailable { ... }
}

Required Methods§

Provided Methods§

source

fn arrays_required() -> Option<Vec<ArrayType>>

source

fn from_arrays(arrays: &BinaryArrayMap) -> Vec<Self>

source

fn has_arrays_for(arrays: &BinaryArrayMap) -> ArraysAvailable

A pre-emptive check for the presence of the required arrays.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl BuildFromArrayMap for CentroidPeak

source§

impl BuildFromArrayMap for DeconvolutedPeak

Implementors§