pub fn shape_ref_as_shape(shape: &ShapeRef) -> Result<&dyn Shape>
Borrows the shape behind a shape reference, or errors if it is not a shape.