How does the different structure of erythrocytes and leukocytes explain their different functions?

How does the different structure of erythrocytes and leukocytes explain their different functions? Like the colour, the nucleus…