Skip to main content

array_kinds

Function array_kinds 

Source
pub fn array_kinds() -> &'static [&'static str]
Expand description

The name of every array family in the crate, in DataType order.

Exists so a test can assert that the sealed implementor set and the closed DataType set stay in step, which is the exhaustiveness guarantee the trait-object design gives up at compile time.

use astrs_data::array::array_kinds;

assert!(array_kinds().contains(&"StructArray"));