Skip to main content

Crate from2to

Crate from2to 

Source
Expand description

Fast <from>2<to> conversion for the terminal.

Today every conversion is a number base or a byte encoding, but nothing in the plumbing assumes that: format::Format is just “a way of writing bytes or numbers”, so other transforms (percent-encoding, rot13) can join the same command-name scheme without disturbing it.

The library half is pure: no I/O, no argument parsing. main.rs is the shell around it.

Re-exports§

pub use convert::ConvError;
pub use convert::Converter;
pub use convert::Options;
pub use detect::Candidate;
pub use format::Format;

Modules§

convert
Decoding, converting and encoding.
detect
Working out what a piece of text already is.
format
The set of things we can convert between.
install
Creating and removing the per-conversion command shims.
names
The command-name table: the single source of truth for what hex2bin, dec2ascii and 1628 mean, and for which shims install creates.
opts
Argument definitions.