logical 0.2.1

Library for simulating digital circuit networks.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::sync::RwLock;

mod portconnector;
mod portdirection;
mod pport;

pub(crate) use self::portconnector::PortConnector;

pub use self::portdirection::{Dir, InOut, Input, MaybeRead, MaybeWrite, Off, Output, PortDirection, Read, Write};
pub use self::pport::Port;

#[derive(Debug)]
pub(crate) struct InnerPort<T> {
    value: RwLock<T>,
}