Trait 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.

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.

Implementors§