# Enumeration colors - functions and str

* This example is similar, but instead of storing owned string we are using str in the enum.

{% embed include file="src/examples/enums/colors-with-functions-using-str/src/main.rs" %}
{% embed include file="src/examples/enums/colors-with-functions-using-str/out.out" %}



