student loans/grants aren't considered public funds as has been said. For a spousal visa, you basically have to prove that you, the non-EEA national, won't have to access public funds when you're living here, regardless of whether your spouse is employed, on benefits, or a full time student. As long as you meet the requirements that everyone else has to meet, you're fine- I'd suggest you do a budget though to make sure.
My husband was a full time undergraduate student when we got engaged and we found it really difficult to meet the financial hurdles of the spouse visa while he was still at uni, mostly because neither of us had any savings at all and he didn't have a part time job while studying either (so his entire income was his meagre student loan and that was all the financial resource we could prove.) If we had had savings or he was working and studying, it might well have been a different story. (In the end, we applied for my visa once he finished and started working.)