Colloquial substantive locution, the Dictionary tells us, which means: no one without distinction. Everyone is excluded in the matter in question. The expression alludes to the chess pieces of the king and the rook, which was formerly called roque, hence the castling move.
* Only one "like" per meaning and day, the more "likes" the meaning will appear higher in the list