Trait amplify::Bipolar[][src]

pub trait Bipolar {
    type Left;
    type Right;
    fn join(left: Self::Left, right: Self::Right) -> Self;
fn split(self) -> (Self::Left, Self::Right); }
Expand description

Trait for splittable streams and other types, which can be separated into some two types (Bipolar::Left, Bipolar::Right), like a reader and writer streams.

Associated Types

First separable type (like reader)

Second separable type (like writer)

Required methods

Reconstruct the type from the halves

Split the type into two

Implementors