hexga_core/format.rs
1pub use std::fmt::{format,Formatter,Debug,Display};
2pub type FmtResult = std::fmt::Result;
3
4pub trait ToDebug
5{
6 fn to_debug(&self) -> String;
7}
8impl<T> ToDebug for T where T: std::fmt::Debug
9{
10 #[inline(always)]
11 fn to_debug(&self) -> String {
12 format!("{:?}", self)
13 }
14}
15
16pub mod prelude
17{
18 pub use super::{format,Formatter,Debug,Display,ToDebug,FmtResult};
19}