Scattering Function of Wormlike Rings