mod write;
pub use self::write::*;
use std::io::Write;
pub trait UnionWriteConst: Write {
#[inline]
fn union<B: Write>(self, b: B) -> UnionWrite<Self, B> where Self: Sized {
UnionWrite::new(self, b)
}
}
impl<T: Write> UnionWriteConst for T {}
impl<A: Write, B: Write> From<(A, B)> for UnionWrite<A, B> {
#[inline(always)]
fn from((a, b): (A, B)) -> Self {
a.union(b)
}
}