crow/enum-util.crow (source)
not-in-enum record exception variant-member
exception variant-membersymbolsymbol
Attempted to convert a symbol/string to an enum, but it's not a valid enum member.
show string(a not-in-enum)
enum-like[t] spec t equal
equalvalues[t] t array() t enum-like
enum-liketo[t] symbol(a t) t enum-like
enum-liketo[t] string(a t) t enum-like
enum-liketo[t] json(a t) t enum-like
enum-liketo[t] t?(a symbol) t enum-like
enum-likeConverts a symbol to the enum value that was declared with that name.
Returns an empty option if a is not the name of an enum member.
to[t] t(a symbol) t enum-like
enum-liketo[t] t?(a string) t enum-like
enum-liketo[t] t(a string) t enum-like
enum-like