You get cellulose and other plant materials, such as plant resins which can also be broken down into an energy source (C-H-O).
In some cases there can be too much, for example too much sugar is toxic, but low amounts are an energy source.
Mycelium can reassemble carbon and H20 (water) into energy, C-H-O, given enough nutrients.