pub fn array_dimensions(
ast: &Ast,
dims: &[Id<ConstExprNode>],
path: &str,
) -> Result<Vec<usize>, ProbeError>Expand description
The element counts of an array’s dimensions.
§Errors
ProbeError::Unsupported where a dimension does not evaluate. A
dimension that substituted zero wrote no elements at all and said it
had worked — defect 7 of the sweep, in its probe-side form.