[][src]Trait sike::Sike

pub trait Sike: Not {
    type SikeOutput;
#[must_use]
    fn sike(self) -> Self::SikeOutput;
}

A trait providing the sike method to any negatable type.

Sike is equivalent to negation, but is a cooler name.

Example

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

Associated Types

Loading content...

Required methods

#[must_use] fn sike(self) -> Self::SikeOutput

Loading content...

Implementors

impl<T: Not> Sike for T[src]

type SikeOutput = Self::Output

Loading content...