when DataSource is a network connection or other bi-directional stream that you need to communicate as well as to parse data from, it's necessary to have access to the underlying contained Write methods. as the Source struct is the owner of the stream struct at that point, it seems necessary to wrap the underlying methods and implement Write for Source if the contained DataSource is an instance of Write.
i didn't include any version number change in this, as chomp is still well below 1.0.0 it's even by SemVer guidelines entirely your call :-)
when
DataSource
is a network connection or other bi-directional stream that you need to communicate as well as to parse data from, it's necessary to have access to the underlying containedWrite
methods. as theSource
struct is the owner of the stream struct at that point, it seems necessary to wrap the underlying methods and implementWrite
forSource
if the containedDataSource
is an instance ofWrite
.i didn't include any version number change in this, as chomp is still well below 1.0.0 it's even by SemVer guidelines entirely your call :-)