logic-gates 0.1.0

Logic Gates
Documentation
1
2
3
4
5
6
7
8
9
10
11
use super::And;
use super::Not;
use super::Signal;

pub struct Nand;

impl Nand {
    pub fn send_signal(input1: &Signal, input2: &Signal) -> Signal {
        Not::send_signal(&And::send_signal(input1, input2))
    }
}