pub fn is_affirmative(s: &str) -> bool
Whether s is y/yes (case-insensitive). Default is NO — anything else, including empty input / EOF, is declined.
s
y
yes