Trait otter_api_tests::imports::failure::_core::ops::Not 1.0.0[−][src]
Expand description
The unary logical negation operator !
.
Examples
An implementation of Not
for Answer
, which enables the use of !
to
invert its value.
use std::ops::Not; #[derive(Debug, PartialEq)] enum Answer { Yes, No, } impl Not for Answer { type Output = Self; fn not(self) -> Self::Output { match self { Answer::Yes => Answer::No, Answer::No => Answer::Yes } } } assert_eq!(!Answer::Yes, Answer::No); assert_eq!(!Answer::No, Answer::Yes);
Associated Types
Required methods
Implementations on Foreign Types
impl Not for WatchMask
impl Not for WatchMask
impl Not for EventMask
impl Not for EventMask
impl Not for Transformations
impl Not for Transformations
impl Not for FileType
impl Not for FileType
Returns the complement of this set of flags.
type Output = X509VerifyFlags
Returns the complement of this set of flags.
type Output = SslOptions
Returns the complement of this set of flags.
type Output = X509CheckFlags
Returns the complement of this set of flags.
type Output = CMSOptions
Returns the complement of this set of flags.
type Output = ExtensionContext
Returns the complement of this set of flags.
type Output = SslSessionCacheMode
Returns the complement of this set of flags.
type Output = Pkcs7Flags
Returns the complement of this set of flags.
type Output = SslVerifyMode
Returns the complement of this set of flags.
type Output = ShutdownState
Implementors
impl Not for AccessFlags
impl Not for AccessFlags
pub fn not(self) -> AccessFlags
pub fn not(self) -> AccessFlags
Returns the complement of this set of flags.
type Output = AccessFlags
impl Not for FallocateFlags
impl Not for FallocateFlags
pub fn not(self) -> FallocateFlags
pub fn not(self) -> FallocateFlags
Returns the complement of this set of flags.
type Output = FallocateFlags
impl Not for SpliceFFlags
impl Not for SpliceFFlags
pub fn not(self) -> SpliceFFlags
pub fn not(self) -> SpliceFFlags
Returns the complement of this set of flags.
type Output = SpliceFFlags
impl Not for DeleteModuleFlags
impl Not for DeleteModuleFlags
pub fn not(self) -> DeleteModuleFlags
pub fn not(self) -> DeleteModuleFlags
Returns the complement of this set of flags.
type Output = DeleteModuleFlags
impl Not for ModuleInitFlags
impl Not for ModuleInitFlags
pub fn not(self) -> ModuleInitFlags
pub fn not(self) -> ModuleInitFlags
Returns the complement of this set of flags.
type Output = ModuleInitFlags
impl Not for InterfaceFlags
impl Not for InterfaceFlags
pub fn not(self) -> InterfaceFlags
pub fn not(self) -> InterfaceFlags
Returns the complement of this set of flags.
type Output = InterfaceFlags
impl Not for CloneFlags
impl Not for CloneFlags
pub fn not(self) -> CloneFlags
pub fn not(self) -> CloneFlags
Returns the complement of this set of flags.
type Output = CloneFlags
impl Not for EpollCreateFlags
impl Not for EpollCreateFlags
pub fn not(self) -> EpollCreateFlags
pub fn not(self) -> EpollCreateFlags
Returns the complement of this set of flags.
type Output = EpollCreateFlags
impl Not for EpollFlags
impl Not for EpollFlags
pub fn not(self) -> EpollFlags
pub fn not(self) -> EpollFlags
Returns the complement of this set of flags.
type Output = EpollFlags
impl Not for AddWatchFlags
impl Not for AddWatchFlags
pub fn not(self) -> AddWatchFlags
pub fn not(self) -> AddWatchFlags
Returns the complement of this set of flags.
type Output = AddWatchFlags
impl Not for MemFdCreateFlag
impl Not for MemFdCreateFlag
pub fn not(self) -> MemFdCreateFlag
pub fn not(self) -> MemFdCreateFlag
Returns the complement of this set of flags.
type Output = MemFdCreateFlag
impl Not for MRemapFlags
impl Not for MRemapFlags
pub fn not(self) -> MRemapFlags
pub fn not(self) -> MRemapFlags
Returns the complement of this set of flags.
type Output = MRemapFlags
impl Not for MlockAllFlags
impl Not for MlockAllFlags
pub fn not(self) -> MlockAllFlags
pub fn not(self) -> MlockAllFlags
Returns the complement of this set of flags.
type Output = MlockAllFlags
impl Not for QuotaValidFlags
impl Not for QuotaValidFlags
pub fn not(self) -> QuotaValidFlags
pub fn not(self) -> QuotaValidFlags
Returns the complement of this set of flags.
type Output = QuotaValidFlags
impl Not for ControlFlags
impl Not for ControlFlags
pub fn not(self) -> ControlFlags
pub fn not(self) -> ControlFlags
Returns the complement of this set of flags.
type Output = ControlFlags
impl Not for InputFlags
impl Not for InputFlags
pub fn not(self) -> InputFlags
pub fn not(self) -> InputFlags
Returns the complement of this set of flags.
type Output = InputFlags
impl Not for LocalFlags
impl Not for LocalFlags
pub fn not(self) -> LocalFlags
pub fn not(self) -> LocalFlags
Returns the complement of this set of flags.
type Output = LocalFlags
impl Not for OutputFlags
impl Not for OutputFlags
pub fn not(self) -> OutputFlags
pub fn not(self) -> OutputFlags
Returns the complement of this set of flags.
type Output = OutputFlags
impl Not for TimerFlags
impl Not for TimerFlags
pub fn not(self) -> TimerFlags
pub fn not(self) -> TimerFlags
Returns the complement of this set of flags.
type Output = TimerFlags
impl Not for TimerSetTimeFlags
impl Not for TimerSetTimeFlags
pub fn not(self) -> TimerSetTimeFlags
pub fn not(self) -> TimerSetTimeFlags
Returns the complement of this set of flags.
type Output = TimerSetTimeFlags
impl Not for WaitPidFlag
impl Not for WaitPidFlag
pub fn not(self) -> WaitPidFlag
pub fn not(self) -> WaitPidFlag
Returns the complement of this set of flags.
type Output = WaitPidFlag