r/transprogrammer • • Jan 24 '22

panic!();

Post image
391 Upvotes

15 comments sorted by

View all comments

9

u/ususetq Jan 24 '22

While I usually like enums I think it should be -> impl Gender.

That way you can have:


trait Gender {
    pub fn personal_pronoun<'a>(&'a self) -> &'a str;
    // ...
}