Different structure of erythrocytes and leukocytes

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