logical_gate/lib.rs
1pub mod io;
2pub mod logical_gate;
3mod traits;
4
5#[cfg(test)]
6mod tests {
7 use crate::traits::LogicalGate;
8
9 #[test]
10 fn it_works() {
11 struct Bool(bool);
12 impl LogicalGate for Bool {
13 fn get(&self) -> bool {
14 self.0
15 }
16
17 fn new(bool: bool) -> Self {
18 Self(bool)
19 }
20 }
21 }
22}