//! ## `DisplayArray`
//!//! This module contains the `DisplayArray` struct, a wrapper type used to format array data in various ways.
usendarray::{ArrayBase, RawData};usestd::marker::PhantomData;usecrate::display_method::DisplayMethod;/// Display wrapper with a phantom type for the display method
#[non_exhaustive]pubstructDisplayArray<'a, T: RawData, D, M: DisplayMethod>{/// The array to be displayed.
pubarrays:Vec<&'aArrayBase<T, D>>,
/// Marker to hold the display method type.
pub_phantom:PhantomData<M>,
}impl<'a, T: RawData, D, M: DisplayMethod>DisplayArray<'a, T, D, M>{/// Construct a new `DisplayArray` instance referring to the given array.
#[must_use]#[inline]pubconstfnnew(arrays:Vec<&'aArrayBase<T, D>>)->Self{
DisplayArray {
arrays,
_phantom: PhantomData,}}}