And if it was decided that denying you some of your rights serves "a useful function to society as a whole" that would be fine with you? Is that the basis we should use to determine what you can or cannot do with your life? Who do you propose determines what constitutes a "useful function"?
I have news for you. That happens every day. Why do you not have the right to steal and murder? Why do you not have the right to slander people? Why do you not have the right to expose military secrets? All individual rights are balanced against a state interest. That's the basis of Con law.
So, your position is that the state determines what your rights are and you see that as right and proper. If the state decides you should not own a gun, then that is fine by you. If the state decides you need to paint your house a particular color, or that you need to share your house with someone who does not have one, then that is simply balancing individual rights against the state interest.
You do understand that makes you a communist, don't you?