pub(crate) fn extract_storable_array_sizes(
attrs: &[Attribute],
) -> Result<Option<Vec<usize>>>Expand description
Extracts array sizes from the #[storable_arrays(...)] attribute.
Parses attributes like #[storable_arrays(1, 2, 4, 8)] and returns a vector
of the specified sizes. Returns None if the attribute is not present.
§Format
The attribute should be a comma-separated list of positive integer literals:
ⓘ
#[storable_arrays(1, 2, 4, 8, 16, 32)]§Errors
Returns an error if:
- The attribute is present but has invalid syntax
- Any size is 0 or exceeds 256
- Duplicate array sizes are specified