As @dan.taylor.1 said. The rail is covered in rubber and set in concrete in a "trough" below ground level with the top face flush with the road surface so that vehicles can pass over it. Spent quite a while last year on the night shift replacing the rails on the tram system in Sheffield and it's truly awful stuff to deal with. The contractors dig it out and cut it into 40' lengths then load it onto a flatbed artic trailer for scrap but there's big lumps of concrete and rubber hanging from it, not the best load to carry...
Used to take it to Ron Hull's scarpyard in Rotherham where it was always a treat watching the guy with the grab machine pick each piece off as delicately as you like.
And it's shaped for the single flange tram wheels to run on and in. A normal train wheel flange overhangs the top of the rail but the tram wheel flange runs in the "cup" while the tread runs on the top face.