Exact solutions for a generalized Mestel disc, and for truncated Toomre discs