Trait Not
Source pub trait Not {
type Output;
// Required method
fn op_not(self) -> Self::Output;
}
The resulting type after applying the !
operator.
Performs the unary !
operation.
§Examples
assert_eq!(!true, false);
assert_eq!(!false, true);
assert_eq!(!1u8, 254);
assert_eq!(!0u8, 255);