The practice of optometry is declared to be a learned profession, and the same rights, powers, and duties are declared to attach thereto as attach to other learned professions.