Function is_rusty

Source
pub fn is_rusty<D: Display>(string: D) -> bool
Expand description

Returns whether the given value is equal to "rusty".

This returns false if the value is rust, because it’s not “rust-y”, it is rust itself.

This does not accept hex or RGB values similar to rust’s colour, because then we might be getting too close to the colours of other languages, and that’s just not rusty.

§Examples

“rusty” is rusty:

assert!(is_rust::is_rusty("rusty"));

“rust” is not rusty:

assert!(!is_rust::is_rusty("rust"));