Module ports
Functions
- inspect
Retrieves the contents of an
invwire.- port
Creates a pair of connected forward and backward wires.
Implementations
impl<T> inv T
pub fn inspect(&self) -> &T
Retrieves the contents of an inv wire.
Examples
let (fwd, back) = port();
let peek = back.inspect();
set back = true;
assert *peek == true;