bools

package
v0.0.0-...-d51f9a1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseCore

type BaseCore struct{}

func (BaseCore) And

func (BaseCore) And(a, b bool) bool

func (BaseCore) Nand

func (BaseCore) Nand(a, b bool) bool

func (BaseCore) Nor

func (BaseCore) Nor(a, b bool) bool

func (BaseCore) Not

func (BaseCore) Not(a bool) bool

func (BaseCore) Or

func (BaseCore) Or(a, b bool) bool

func (BaseCore) Xnor

func (BaseCore) Xnor(a, b bool) bool

func (BaseCore) Xor

func (BaseCore) Xor(a, b bool) bool

type Core

type Core interface {
	Not(a bool) bool

	Or(a, b bool) bool
	And(a, b bool) bool

	Nor(a, b bool) bool
	Nand(a, b bool) bool

	Xor(a, b bool) bool
	Xnor(a, b bool) bool
}

type NandCore

type NandCore struct{}

Use only Nand

func (NandCore) And

func (NandCore) And(a, b bool) bool

func (NandCore) Nand

func (NandCore) Nand(a, b bool) bool

func (NandCore) Nor

func (NandCore) Nor(a, b bool) bool

func (NandCore) Not

func (NandCore) Not(a bool) bool

func (NandCore) Or

func (NandCore) Or(a, b bool) bool

func (NandCore) Xnor

func (NandCore) Xnor(a, b bool) bool

func (NandCore) Xor

func (NandCore) Xor(a, b bool) bool

type NorCore

type NorCore struct{}

Use only Nor

func (NorCore) And

func (NorCore) And(a, b bool) bool

func (NorCore) Nand

func (NorCore) Nand(a, b bool) bool

func (NorCore) Nor

func (NorCore) Nor(a, b bool) bool

func (NorCore) Not

func (NorCore) Not(a bool) bool

func (NorCore) Or

func (NorCore) Or(a, b bool) bool

func (NorCore) Xnor

func (NorCore) Xnor(a, b bool) bool

func (NorCore) Xor

func (NorCore) Xor(a, b bool) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL