I know that a function is injective if every element of the domain maps onto at most one element of the co-domain, that is, if $f(x_{1}) = f(x_{2})$ implies $x_{1} = x_{2}$, or the contrapositive. However, is it allowable for an injective function to have some number of elements $n$ that don't map onto any values in the co-domain? It seems like, at most, there could be one unmapped element. Otherwise, with an unmapped $x_{1}$, $x_{2}$, $f(x_{1}) = f(x_{2}) = \varnothing$, implying that in fact $x_{1} = x_{2}$.
Am I missing something here?