Accusation, arrest and detention; punishment limited to laws established prior to offense.

That no person shall be accused or arrested, or detained, except in cases ascertained by law, and according to the form which the same has prescribed; and no person shall be punished but by virtue of a law established and promulgated prior to the offense and legally applied.