bsk_rust_config_array

Functions

template<typename Value, typename Wrapper>
std::vector<Value> bskRustGetConfigArray(const Wrapper *wrapper, std::size_t fieldIndex, std::size_t length)

Copy a flat Rust configuration array through its guarded accessor.

Note

std::vector<bool> packs its elements and cannot supply bool* storage. C++ type resolution selects this path for every Boolean alias, too.

Template Parameters:
  • Value – C++ element type, including aliases of bool.

  • Wrapper – Generated Rust module wrapper type.

Parameters:
  • wrapper – Wrapper providing __bskGetConfigField().

  • fieldIndex – Index of the Rust configuration field.

  • length – Number of elements across all array dimensions.

Returns:

Copied elements for conversion to a Python sequence.

template<typename Value, typename Wrapper>
void bskRustSetConfigArray(Wrapper *wrapper, std::size_t fieldIndex, const std::vector<Value> &value)

Copy a flat Python array into a guarded Rust configuration setter.

Note

Boolean elements use real bool storage, not vector<bool> packed bits. Rust still validates the complete proposed value before storing it.

Template Parameters:
  • Value – C++ element type, including aliases of bool.

  • Wrapper – Generated Rust module wrapper type.

Parameters:
  • wrapper – Wrapper providing __bskSetConfigField().

  • fieldIndex – Index of the Rust configuration field.

  • value – Converted elements; the generated caller checks the array length.