Struct dactyl::NiceU64 [−][src]
pub struct NiceU64 { /* fields omitted */ }
Expand description
NiceU64
provides a quick way to convert a u64
into a formatted byte
string for e.g. printing. Commas are added for every thousand.
That’s it!
Examples
use dactyl::NiceU64;
assert_eq!(
NiceU64::from(33231_u64).as_str(),
"33,231"
);
Implementations
Casting.
This section provides methods for converting instances into other types.
Note: this struct can also be dereferenced to &[u8]
.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for NiceU64
impl UnwindSafe for NiceU64
Blanket Implementations
Mutably borrows from an owned value. Read more