diff options
author | iximeow <me@iximeow.net> | 2020-01-18 13:49:14 -0800 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2020-01-18 13:49:14 -0800 |
commit | 142c9da7cd3446211e1d00963260c06729a7637e (patch) | |
tree | 43830627b64f0e0a52e9644e56550e8d8cf98959 /src/lib.rs | |
parent | 894cba0dde913d86472430eae8b7ba0353711b4e (diff) |
finally replace `stringy` with something usable
addresses must implement a function that returns a struct that is
applicably formattable. particularly because the default Display impl on
primitives is not necessarily desirable, if you want hex. additionally
this allows meaningful Display for complex (eg, not a single primitive)
addresses, such as segmented memory
also expose AddressDisplay to name outside this crate. what an oversight
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -17,7 +17,10 @@ extern crate termion; use serde::{Serialize, Deserialize}; mod address; -pub use address::{Address, AddressBase}; +pub use address::{Address, AddressBase, AddressDisplay}; +pub use address::{AddressDisplayUsize, AddressDisplayU64, AddressDisplayU32, AddressDisplayU16}; +#[cfg(feature="address-parse")] +pub use address::AddrParse; mod color; pub use color::{Colorize, NoColors, YaxColors}; |