pub trait BuildArrayMap3DFrom: BuildArrayMapFrom {
// Provided method
fn as_arrays_3d(source: &[Self]) -> BinaryArrayMap3D { ... }
}Expand description
An extension of BuildArrayMapFrom that produces BinaryArrayMap3D
instead.
It is intended for use with ion mobility frames like MultiLayerIonMobilityFrame
and feature types like Feature.
Provided Methods§
Sourcefn as_arrays_3d(source: &[Self]) -> BinaryArrayMap3D
fn as_arrays_3d(source: &[Self]) -> BinaryArrayMap3D
Serialize a slice of Self into a BinaryArrayMap3D.
The default implementation just calls BuildArrayMapFrom::as_arrays and
then reshapes them into a BinaryArrayMap3D. This leverages the requirement
that a flat BinaryArrayMap can already be built from the same type, but may
be more expensive than expected because it then makes copies of all of the data
to re-arrange in a 3D layout.
§Panics
The default implementation panics if the intermediate BinaryArrayMap cannot
actually be converted into a BinaryArrayMap3D
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
impl BuildArrayMap3DFrom for ChargedFeature<Mass, IonMobility>
ChargedFeature uses the default BuildArrayMap3DFrom implementation.
impl BuildArrayMap3DFrom for Feature<MZ, IonMobility>
Feature uses the default BuildArrayMap3DFrom implementation.