enum dalam karat
// as example a for a gender
enum Gender {
MALE,
FEMININE,
DIVERS,
NONE
}
// impl contains all functions and methods that will be implemented to your enum
impl Gender {...}
/* It is possible to give the options variables as well.
An example:
enum Option<T> {
Some(T),
None
}
*/
SnefDen