Struct den::SegmentUnknown

source ·
pub struct SegmentUnknown<S: ExtendVec = Vec<u8>> {
    pub source: S,
}
Expand description

A segment with unknown contents. This will transmit the data.

Fields§

§source: S

The data source to fill the unknown with.

Implementations§

source§

impl<S: ExtendVec> SegmentUnknown<S>

source

pub fn new(source: S) -> Self

Create a new SegmentUnknown from source. The methods on ExtendVec is then used to fill the target.

source

pub fn source(&self) -> &S

Get a reference to the data source.

source§

impl SegmentUnknown