1 2 3 4 5 6 7 8 9 10
#[derive(Debug)] pub(crate) struct WriterData<SW> { pub(crate) stream_writer: SW, } impl<SW> WriterData<SW> { pub(crate) fn new(stream_writer: SW) -> Self { Self { stream_writer } } }