Function left_right::new_from_empty[][src]

pub fn new_from_empty<T, O>(t: T) -> (WriteHandle<T, O>, ReadHandle<T>) where
    T: Absorb<O> + Clone
Expand description

Construct a new write and read handle pair from an empty data structure.

The type must implement Clone so we can construct the second copy from the first.