[periodic reminder that this account moved → @orionwl ]
@orionwl looks like it works, thanks everyone that helped testing
I hate moving, but I guess it's time to start how to figure out how to move my followers and such
@[email protected] variant types are sum types IIRC
as for methods, for example:
enum ColorPair {
DEFAULT = 1,
PLAYER,
...
}
impl ColorPair {
pub fn attr(&self) -> u64 {
COLOR_PAIR((*self) as i16)
}
}
then one can call .attr() on instances of ColorPair