3 stable releases

2.1.0 Sep 12, 2019
2.0.0 Sep 12, 2019
1.0.0 Aug 6, 2019

#27 in #convenience

MIT license

3KB

Sike

A crate for excellent negation.


lib.rs:

Sike adds a fun convenience method to any type which can be negated with the negation operator !, called sike. To use the method, just import the Sike trait like so:

use sike::Sike;

This adds the sike method to anything which can be negated, giving you a more entertaining way to do the negation.

assert_eq!(true.sike(), false);

You can also use sike method on types like u8:

assert_eq!((2 as u8).sike(), 253);

No runtime deps