enum rust functions code example Example: enum rust enum Color { WHITE, BLACK, } Color::WHITE; Color::BLACK;