is_kinda_yes

Function is_kinda_yes 

Source
pub fn is_kinda_yes(string: impl Display) -> bool
Expand description

Determines if a value is kinda yes.

Returns true when the value is kinda yes "yes", "many no is still yes because many is yes".

ยงExamples

input should be kinda yes:

assert!(yn::is_kinda_yes("yes")); // always make sure
assert!(yn::is_kinda_yes("many no is still yes because many is yes"));

should definitely not be kinda yes:

assert!(!yn::is_kinda_yes("no no noooo"));
assert!(!yn::is_kinda_yes("veri meni no's"));
assert!(!yn::is_kinda_yes("should write veri false now instead of ver..- ALMOST.. VER.. AAARGHHH!"));