Trait druid::piet::cairo::glib::bitflags::_core::ops::Not

1.0.0 · source ·
pub trait Not {
    type Output;

    // Required method
    fn not(self) -> Self::Output;
}
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);

Required Associated Types§

source

type Output

The resulting type after applying the ! operator.

Required Methods§

source

fn not(self) -> Self::Output

Performs the unary ! operation.

Examples
assert_eq!(!true, false);
assert_eq!(!false, true);
assert_eq!(!1u8, 254);
assert_eq!(!0u8, 255);

Implementors§

const: unstable · source§

impl Not for &bool

§

type Output = <bool as Not>::Output

const: unstable · source§

impl Not for &i8

§

type Output = <i8 as Not>::Output

const: unstable · source§

impl Not for &i16

§

type Output = <i16 as Not>::Output

const: unstable · source§

impl Not for &i32

§

type Output = <i32 as Not>::Output

const: unstable · source§

impl Not for &i64

§

type Output = <i64 as Not>::Output

const: unstable · source§

impl Not for &i128

§

type Output = <i128 as Not>::Output

const: unstable · source§

impl Not for &isize

§

type Output = <isize as Not>::Output

const: unstable · source§

impl Not for &u8

§

type Output = <u8 as Not>::Output

const: unstable · source§

impl Not for &u16

§

type Output = <u16 as Not>::Output

const: unstable · source§

impl Not for &u32

§

type Output = <u32 as Not>::Output

const: unstable · source§

impl Not for &u64

§

type Output = <u64 as Not>::Output

const: unstable · source§

impl Not for &u128

§

type Output = <u128 as Not>::Output

const: unstable · source§

impl Not for &usize

§

type Output = <usize as Not>::Output

source§

impl Not for &Saturating<i8>

source§

impl Not for &Saturating<i16>

source§

impl Not for &Saturating<i32>

source§

impl Not for &Saturating<i64>

source§

impl Not for &Saturating<i128>

source§

impl Not for &Saturating<isize>

source§

impl Not for &Saturating<u8>

source§

impl Not for &Saturating<u16>

source§

impl Not for &Saturating<u32>

source§

impl Not for &Saturating<u64>

source§

impl Not for &Saturating<u128>

source§

impl Not for &Saturating<usize>

1.14.0 (const: unstable) · source§

impl Not for &Wrapping<i8>

§

type Output = <Wrapping<i8> as Not>::Output

1.14.0 (const: unstable) · source§

impl Not for &Wrapping<i16>

1.14.0 (const: unstable) · source§

impl Not for &Wrapping<i32>

1.14.0 (const: unstable) · source§

impl Not for &Wrapping<i64>

1.14.0 (const: unstable) · source§

impl Not for &Wrapping<i128>

1.14.0 (const: unstable) · source§

impl Not for &Wrapping<isize>

1.14.0 (const: unstable) · source§

impl Not for &Wrapping<u8>

§

type Output = <Wrapping<u8> as Not>::Output

1.14.0 (const: unstable) · source§

impl Not for &Wrapping<u16>

1.14.0 (const: unstable) · source§

impl Not for &Wrapping<u32>

1.14.0 (const: unstable) · source§

impl Not for &Wrapping<u64>

1.14.0 (const: unstable) · source§

impl Not for &Wrapping<u128>

1.14.0 (const: unstable) · source§

impl Not for &Wrapping<usize>

const: unstable · source§

impl Not for bool

§

type Output = bool

const: unstable · source§

impl Not for i8

§

type Output = i8

const: unstable · source§

impl Not for i16

§

type Output = i16

const: unstable · source§

impl Not for i32

§

type Output = i32

const: unstable · source§

impl Not for i64

§

type Output = i64

const: unstable · source§

impl Not for i128

§

type Output = i128

const: unstable · source§

impl Not for isize

1.60.0 (const: unstable) · source§

impl Not for !

§

type Output = !

const: unstable · source§

impl Not for u8

§

type Output = u8

const: unstable · source§

impl Not for u16

§

type Output = u16

const: unstable · source§

impl Not for u32

§

type Output = u32

const: unstable · source§

impl Not for u64

§

type Output = u64

const: unstable · source§

impl Not for u128

§

type Output = u128

const: unstable · source§

impl Not for usize

source§

impl Not for druid::Modifiers

§

impl Not for PdfOutline

§

impl Not for BindingFlags

§

impl Not for FormatSizeFlags

§

impl Not for IOCondition

§

impl Not for KeyFileFlags

§

impl Not for LogLevelFlags

§

impl Not for LogLevels

§

impl Not for OptionFlags

§

impl Not for ParamFlags

§

impl Not for SignalFlags

§

impl Not for SpawnFlags

source§

impl Not for Saturating<i8>

source§

impl Not for Saturating<i16>

source§

impl Not for Saturating<i32>

source§

impl Not for Saturating<i64>

source§

impl Not for Saturating<i128>

source§

impl Not for Saturating<isize>

source§

impl Not for Saturating<u8>

source§

impl Not for Saturating<u16>

source§

impl Not for Saturating<u32>

source§

impl Not for Saturating<u64>

source§

impl Not for Saturating<u128>

source§

impl Not for Saturating<usize>

const: unstable · source§

impl Not for Wrapping<i8>

const: unstable · source§

impl Not for Wrapping<i16>

const: unstable · source§

impl Not for Wrapping<i32>

const: unstable · source§

impl Not for Wrapping<i64>

const: unstable · source§

impl Not for Wrapping<i128>

const: unstable · source§

impl Not for Wrapping<isize>

const: unstable · source§

impl Not for Wrapping<u8>

const: unstable · source§

impl Not for Wrapping<u16>

const: unstable · source§

impl Not for Wrapping<u32>

const: unstable · source§

impl Not for Wrapping<u64>

const: unstable · source§

impl Not for Wrapping<u128>

const: unstable · source§

impl Not for Wrapping<usize>

source§

impl Not for B0

Not of 0 (!0 = 1)

§

type Output = B1

source§

impl Not for B1

Not of 1 (!1 = 0)

§

type Output = B0

§

impl Not for AccelFlags

§

type Output = AccelFlags

§

impl Not for AnchorHints

§

type Output = AnchorHints

§

impl Not for AppInfoCreateFlags

§

type Output = AppInfoCreateFlags

§

impl Not for ApplicationFlags

§

type Output = ApplicationFlags

§

impl Not for ApplicationInhibitFlags

§

type Output = ApplicationInhibitFlags

§

impl Not for AskPasswordFlags

§

type Output = AskPasswordFlags

§

impl Not for AxisFlags

§

type Output = AxisFlags

§

impl Not for BusNameOwnerFlags

§

type Output = BusNameOwnerFlags

§

impl Not for BusNameWatcherFlags

§

type Output = BusNameWatcherFlags

§

impl Not for CalendarDisplayOptions

§

type Output = CalendarDisplayOptions

§

impl Not for CellRendererState

§

type Output = CellRendererState

§

impl Not for ConverterFlags

§

type Output = ConverterFlags

§

impl Not for DBusCallFlags

§

type Output = DBusCallFlags

§

impl Not for DBusCapabilityFlags

§

type Output = DBusCapabilityFlags

§

impl Not for DBusConnectionFlags

§

type Output = DBusConnectionFlags

§

impl Not for DBusInterfaceSkeletonFlags

§

type Output = DBusInterfaceSkeletonFlags

§

impl Not for DBusMessageFlags

§

type Output = DBusMessageFlags

§

impl Not for DBusProxyFlags

§

type Output = DBusProxyFlags

§

impl Not for DBusSendMessageFlags

§

type Output = DBusSendMessageFlags

§

impl Not for DBusServerFlags

§

type Output = DBusServerFlags

§

impl Not for DBusSignalFlags

§

type Output = DBusSignalFlags

§

impl Not for DestDefaults

§

type Output = DestDefaults

§

impl Not for DialogFlags

§

type Output = DialogFlags

§

impl Not for DragAction

§

type Output = DragAction

§

impl Not for DriveStartFlags

§

type Output = DriveStartFlags

§

impl Not for EventMask

§

type Output = EventMask

§

impl Not for FileAttributeInfoFlags

§

type Output = FileAttributeInfoFlags

§

impl Not for FileCopyFlags

§

type Output = FileCopyFlags

§

impl Not for FileCreateFlags

§

type Output = FileCreateFlags

§

impl Not for FileFilterFlags

§

type Output = FileFilterFlags

§

impl Not for FileMeasureFlags

§

type Output = FileMeasureFlags

§

impl Not for FileMonitorFlags

§

type Output = FileMonitorFlags

§

impl Not for FileQueryInfoFlags

§

type Output = FileQueryInfoFlags

§

impl Not for FontMask

§

type Output = FontMask

§

impl Not for FrameClockPhase

§

type Output = FrameClockPhase

§

impl Not for HyperlinkStateFlags

§

type Output = HyperlinkStateFlags

§

impl Not for IOStreamSpliceFlags

§

type Output = IOStreamSpliceFlags

§

impl Not for IconLookupFlags

§

type Output = IconLookupFlags

§

impl Not for InputHints

§

type Output = InputHints

§

impl Not for JunctionSides

§

type Output = JunctionSides

§

impl Not for ModifierType

§

type Output = ModifierType

§

impl Not for Modifiers

§

type Output = Modifiers

§

impl Not for MountMountFlags

§

type Output = MountMountFlags

§

impl Not for MountUnmountFlags

§

type Output = MountUnmountFlags

§

impl Not for OutputStreamSpliceFlags

§

type Output = OutputStreamSpliceFlags

§

impl Not for PixbufFormatFlags

§

type Output = PixbufFormatFlags

§

impl Not for PlacesOpenFlags

§

type Output = PlacesOpenFlags

§

impl Not for RecentFilterFlags

§

type Output = RecentFilterFlags

§

impl Not for RegionFlags

§

type Output = RegionFlags

§

impl Not for ResourceLookupFlags

§

type Output = ResourceLookupFlags

§

impl Not for SeatCapabilities

§

type Output = SeatCapabilities

§

impl Not for SerializeFlags

§

type Output = SerializeFlags

§

impl Not for SettingsBindFlags

§

type Output = SettingsBindFlags

§

impl Not for ShapeFlags

§

type Output = ShapeFlags

§

impl Not for ShowFlags

§

type Output = ShowFlags

§

impl Not for StateFlags

§

type Output = StateFlags

§

impl Not for StyleContextPrintFlags

§

type Output = StyleContextPrintFlags

§

impl Not for SubprocessFlags

§

type Output = SubprocessFlags

§

impl Not for TargetFlags

§

type Output = TargetFlags

§

impl Not for TextSearchFlags

§

type Output = TextSearchFlags

§

impl Not for TlsCertificateFlags

§

type Output = TlsCertificateFlags

§

impl Not for TlsDatabaseVerifyFlags

§

type Output = TlsDatabaseVerifyFlags

§

impl Not for TlsPasswordFlags

§

type Output = TlsPasswordFlags

§

impl Not for ToolPaletteDragTargets

§

type Output = ToolPaletteDragTargets

§

impl Not for Transformations

§

type Output = Transformations

§

impl Not for TreeModelFlags

§

type Output = TreeModelFlags

§

impl Not for WMDecoration

§

type Output = WMDecoration

§

impl Not for WMFunction

§

type Output = WMFunction

§

impl Not for WindowHints

§

type Output = WindowHints

§

impl Not for WindowState

§

type Output = WindowState

§

impl<Size> Not for Bitmap<Size>where Size: Bits,

§

type Output = Bitmap<Size>

source§

impl<T, const LANES: usize> Not for Mask<T, LANES>where T: MaskElement, LaneCount<LANES>: SupportedLaneCount,

§

type Output = Mask<T, LANES>

source§

impl<const LANES: usize> Not for Simd<i8, LANES>where i8: SimdElement, LaneCount<LANES>: SupportedLaneCount,

§

type Output = Simd<i8, LANES>

source§

impl<const LANES: usize> Not for Simd<i16, LANES>where i16: SimdElement, LaneCount<LANES>: SupportedLaneCount,

§

type Output = Simd<i16, LANES>

source§

impl<const LANES: usize> Not for Simd<i32, LANES>where i32: SimdElement, LaneCount<LANES>: SupportedLaneCount,

§

type Output = Simd<i32, LANES>

source§

impl<const LANES: usize> Not for Simd<i64, LANES>where i64: SimdElement, LaneCount<LANES>: SupportedLaneCount,

§

type Output = Simd<i64, LANES>

source§

impl<const LANES: usize> Not for Simd<isize, LANES>where isize: SimdElement, LaneCount<LANES>: SupportedLaneCount,

§

type Output = Simd<isize, LANES>

source§

impl<const LANES: usize> Not for Simd<u8, LANES>where u8: SimdElement, LaneCount<LANES>: SupportedLaneCount,

§

type Output = Simd<u8, LANES>

source§

impl<const LANES: usize> Not for Simd<u16, LANES>where u16: SimdElement, LaneCount<LANES>: SupportedLaneCount,

§

type Output = Simd<u16, LANES>

source§

impl<const LANES: usize> Not for Simd<u32, LANES>where u32: SimdElement, LaneCount<LANES>: SupportedLaneCount,

§

type Output = Simd<u32, LANES>

source§

impl<const LANES: usize> Not for Simd<u64, LANES>where u64: SimdElement, LaneCount<LANES>: SupportedLaneCount,

§

type Output = Simd<u64, LANES>

source§

impl<const LANES: usize> Not for Simd<usize, LANES>where usize: SimdElement, LaneCount<LANES>: SupportedLaneCount,

§

type Output = Simd<usize, LANES>