is_kinda_no

Function is_kinda_no 

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

Determines if a value is kinda no.

Returns true when the value is kinda no "no", "if it has a n somewhere".

ยงExamples

input should be kinda no:

assert!(yn::is_kinda_no("no")); // always make sure
assert!(yn::is_kinda_no("n"));

should definitely not be kinda no:

assert!(!yn::is_somewhat_no("yes YES YEEEEEEEEEEEEEESSS"));
assert!(!yn::is_somewhat_no("oooh i ca.. i almost typed the character! :("));
assert!(!yn::is_somewhat_no("uuuuuuuuuuuuuu"));