Skip to main content

NotLogic

Trait NotLogic 

Source
pub trait NotLogic {
    type Output;

    // Required method
    fn not_logic(self) -> Self::Output;
}
Expand description

Trait for negation operator (!) in logic code.

Required Associated Types§

Required Methods§

Source

fn not_logic(self) -> Self::Output

logic ⚠

requires

false

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl NotLogic for bool

Source§

fn not_logic(self) -> Self::Output

logic ⚠

Source§

type Output = bool

Source§

impl NotLogic for i8

Source§

fn not_logic(self) -> Self

logic ⚠

Source§

type Output = i8

Source§

impl NotLogic for i16

Source§

fn not_logic(self) -> Self

logic ⚠

Source§

type Output = i16

Source§

impl NotLogic for i32

Source§

fn not_logic(self) -> Self

logic ⚠

Source§

type Output = i32

Source§

impl NotLogic for i64

Source§

fn not_logic(self) -> Self

logic ⚠

Source§

type Output = i64

Source§

impl NotLogic for i128

Source§

fn not_logic(self) -> Self

logic ⚠

Source§

type Output = i128

Source§

impl NotLogic for isize

Source§

fn not_logic(self) -> Self

logic ⚠

Source§

type Output = isize

Source§

impl NotLogic for u8

Source§

fn not_logic(self) -> Self

logic ⚠

Source§

type Output = u8

Source§

impl NotLogic for u16

Source§

fn not_logic(self) -> Self

logic ⚠

Source§

type Output = u16

Source§

impl NotLogic for u32

Source§

fn not_logic(self) -> Self

logic ⚠

Source§

type Output = u32

Source§

impl NotLogic for u64

Source§

fn not_logic(self) -> Self

logic ⚠

Source§

type Output = u64

Source§

impl NotLogic for u128

Source§

fn not_logic(self) -> Self

logic ⚠

Source§

type Output = u128

Source§

impl NotLogic for usize

Source§

fn not_logic(self) -> Self

logic ⚠

Source§

type Output = usize

Implementors§