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§
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>
Sourcefn has_arrays_for(arrays: &BinaryArrayMap) -> ArraysAvailable
fn has_arrays_for(arrays: &BinaryArrayMap) -> ArraysAvailable
A pre-emptive check for the presence of the required arrays.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.