pub fn value_as_shape(value: &Value) -> Result<&dyn Shape>
Borrows the shape backing a value, or errors if it is not a shape.