All-fermion electrodynamics and fermion number anomaly inflow