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 endian::Endian;pub use endian::Endpoint;pub use expr::ExprError;pub use format::Format;
Modules§
- convert
- Decoding, converting and encoding.
- detect
- Working out what a piece of text already is.
- endian
- Byte order, which is orthogonal to
Format. - expr
- Integer expression evaluation, for the arithmetic that sits between two conversions.
- 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,dec2asciiand1628mean, and for which shimsinstallcreates. - opts
- Argument definitions.