Trait constriction::backends::IntoReadWords[][src]

pub trait IntoReadWords<Word, S: Semantics> {
    type IntoReadWords: ReadWords<Word, S>;
    fn into_read_words(self) -> Self::IntoReadWords;
}
Expand description

A trait for types that can be turned into a source of compressed data (for decoders).

This trait is roughly analogous to the standard library trait IntoIterator, except that it is generic over Word rather than having Word as an associated type. This makes it possible to convert a single type into data sources of varying word sizes (for example, one could imagine implementing both IntoReadWords<u32> and IntoReadWords<u16> for Vec<u8> using the byteorder crate).

See also

Associated Types

The type of the data source that will result from the conversion.

Required methods

Performs the conversion.

Implementors