Module dd_lib::io::conv

source ·
Expand description

Converter converts a slice according to the conversion flags and conversion block size specified in super::opts

Structs

A converter modifies the blocks read from a Reader before they are written to a Writer

Enums

The case to convert to. The effect of this is dependent on EncodeTo; the conversion will happen AFTER the encoding in the case of EncodeTo::ASCII, EncodeTo::OLD_ASCII, and EncodeTo::None and before otherwise.
The Encoding to convert to. EncodeTo::ASCII and EncodeTo::OLD_ASCII assume that the source file is encoded in classic EBCDIC, while IBM, EBCDIC, OLD_IBM, and OLD_EBCDIC assume that the source file is encoded in modern (that is, post-1967) ASCII

Traits

A convertslice can modify a slice of T in-place, and provides helper methods to create modified copies.

Functions

Swap every pair of items. If slice.len() % 2 == 1, the last item will be ignored.