#gate #logical #simulation #xor #nor #nand

gates

Gates is a simple library to simulate logical gates

2 unstable releases

0.1.0 Nov 25, 2020
0.0.0 Nov 24, 2020

#1240 in Math

MIT license

7KB
203 lines

Gates

Gates is a simple library to simulate logical gates.

gates:

  • and
  • or
  • not
  • xor
  • nand
  • nor

example

assert_eq!(not(and(1, 0)), nand(Signal::On, Signal::Off));

Documentation

No runtime deps