Function yn::is_kinda_yes[][src]

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

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!"));