Skip to main content

NegLogic

Trait NegLogic 

Source
pub trait NegLogic {
    type Output;

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

Trait for negation (unary -) in logic code.

Required Associated Types§

Required Methods§

Source

fn neg_logic(self) -> Self::Output

logic

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl NegLogic for i8

Source§

fn neg_logic(self) -> Self

logic

Source§

type Output = i8

Source§

impl NegLogic for i16

Source§

fn neg_logic(self) -> Self

logic

Source§

type Output = i16

Source§

impl NegLogic for i32

Source§

fn neg_logic(self) -> Self

logic

Source§

type Output = i32

Source§

impl NegLogic for i64

Source§

fn neg_logic(self) -> Self

logic

Source§

type Output = i64

Source§

impl NegLogic for i128

Source§

fn neg_logic(self) -> Self

logic

Source§

type Output = i128

Source§

impl NegLogic for isize

Source§

fn neg_logic(self) -> Self

logic

Source§

type Output = isize

Source§

impl NegLogic for u8

Source§

fn neg_logic(self) -> Self

logic

Source§

type Output = u8

Source§

impl NegLogic for u16

Source§

fn neg_logic(self) -> Self

logic

Source§

type Output = u16

Source§

impl NegLogic for u32

Source§

fn neg_logic(self) -> Self

logic

Source§

type Output = u32

Source§

impl NegLogic for u64

Source§

fn neg_logic(self) -> Self

logic

Source§

type Output = u64

Source§

impl NegLogic for u128

Source§

fn neg_logic(self) -> Self

logic

Source§

type Output = u128

Source§

impl NegLogic for usize

Source§

fn neg_logic(self) -> Self

logic

Source§

type Output = usize

Implementors§