Fixed gear bikes don't allow you to coast. If you're moving, the pedals are spinning with the wheels.
Single speed bikes have a freewheel like multi-speed bikes so you can coast or spin the pedals backwards without slowing the bike.
There's a device calle a reversible flip-flop hub that allows you to quickly convert a bike between the two modes.