Is panic!() the same as trap()?

Some conflicting info here.