Trait constriction::backends::IntoSeekReadWords
source · pub trait IntoSeekReadWords<Word, S: Semantics> {
type IntoSeekReadWords: Seek + ReadWords<Word, S>;
// Required method
fn into_seek_read_words(self) -> Self::IntoSeekReadWords;
}
Expand description
A trait for types that can be turned into a randomly accessible source of compressed data (for decoders).
This trait is similar to IntoReadWords
but it adds the additional guarantee that the
resulting data source implements Seek
, i.e., that it can be used by decoders that
support random access.
See also
- module level documentation for more information on the concept of sources and sinks of compressed data;
AsSeekReadWords
for a simliar conversion that does not take ownership of the data;
Required Associated Types§
sourcetype IntoSeekReadWords: Seek + ReadWords<Word, S>
type IntoSeekReadWords: Seek + ReadWords<Word, S>
The type of the random-access data source that will result from the conversion.
Required Methods§
sourcefn into_seek_read_words(self) -> Self::IntoSeekReadWords
fn into_seek_read_words(self) -> Self::IntoSeekReadWords
Performs the conversion.