aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2020-01-18 13:49:14 -0800
committeriximeow <me@iximeow.net>2020-01-18 13:49:14 -0800
commit142c9da7cd3446211e1d00963260c06729a7637e (patch)
tree43830627b64f0e0a52e9644e56550e8d8cf98959 /src/lib.rs
parent894cba0dde913d86472430eae8b7ba0353711b4e (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.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index f503741..17115af 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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};