Struct bcder::decode::CaptureSource [−][src]
pub struct CaptureSource<'a, S: 'a> { /* fields omitted */ }
Expand description
A source that captures what has been advanced over.
A capture source wraps a mutable reference to some other source and provides the usual source access. However, instead of dropping octets that have been advanced over, it keeps them around and allows taking them out as a bytes value.
This type is used by Constructed::capture
.
Implementations
Creates a new capture source using a reference to some other source.
Converts the capture source into the captured bytes.