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 ([Left
], [Right
]), like a reader and writer streams.