How can the structure of a crystal be studied?

With the help of X-rays.