Expand description
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);Traitsยง
- Sike
- A trait providing the
sikemethod to any negatable type.