LaTeX embedding symbols

Symbol Command
$\hookrightarrow$ \hookrightarrow
$\hookleftarrow$ \hookleftarrow
f : X \hookrightarrow Y

\[ f : X \hookrightarrow Y \]

LaTeX function

LaTeX