The action of a molecule that contributes to the structural integrity of the myelin sheath of a nerve.