Open Source licenses are all underpinned by copyright law. Without copyright law, Open Source would fall apart.
Copyright was originally written for creative works, and does not protect facts, ideas, systems, or methods of operation, including algorithms. At https://www.copyright.gov/circs/circ01.pdf, It's notably listed that "Mere listings of ingredients or contents" are also not protected, which could apply to some portions of rendered code (for example, the function table in a dynamic library could be considered a listing of contents).
With these things in mind, it would seem that the entirety of my code isn't protected by copyright. This is fine to me, I would not expect, for example, function headers that I write to be under copyright (it would be very painful to anyone who wanted to write a function that takes in an array and outputs an int). This leads to my question however; what specific parts / qualities of my code are protected / protectable by copyright, and therefore are licensable under open source licenses? Answers specific to the United States are preferred.
A caution:
The answer "all of your code is protected" would be very very bad if it was true. This is because we know factually that not all subsets of your code are protected. If we know that the entire work is protected, but not all subsets, then we can say that any specific given subset of your code might not be protected, or in other words, if anyone takes almost (but not all) of your code, the answer "all of your code is protected" indicates that this portion of your code may not be protected.