Function port
pub extern fn port<T>() -> (T, inv T)Expand
Creates a pair of connected forward and backward wires.
Examples
let (fwd, back) = port();
set back = 3u8;
assert fwd == 3u8;pub extern fn port<T>() -> (T, inv T)Creates a pair of connected forward and backward wires.
let (fwd, back) = port();
set back = 3u8;
assert fwd == 3u8;