The notation means that $d$ is a function that takes a pair of numbers and maps them to the reals. The pair of numbers could be thought of as an ordered pair $(x,y)$ where $x \in X$ and $y \in X$, and the tuple $(x,y)$ is in the Cartesian product of $X$ with itself: $X \times X$.