#include "tensorstore/rank.h" constexpr tensorstore::RankConstraint::operator DimensionIndex() const; Returns rank.