Function read_write_inout
pub extern fn read_write_inout<T>(p: inout<T>) -> (Option<T>, inv Option<T>)Expand
Returns a pair of output/input ports to interact with an inout value.
This function provides exclusive I/O access to the inout port, so only one of those operations
can be performed at any given moment. When the value at the input is set to Some(_), the port
is driven and the output is None. When the value at the input is set to None, the port is
left in a high-impedance state and the output is the incoming value Some(_).