Trait aoko::no_std::functions::ext::U128Ext[][src]

pub trait U128Ext {
    fn fmt_size_from(self, unit: char) -> String;
}
Expand description

This trait is to implement some extension functions for u128 type.

Required methods

Implementations on Foreign Types

Human readable storage unit.

Examples
use aoko::no_std::functions::ext::*;

assert_eq!(String::from("32.0 G"), 33554432.fmt_size_from('K'));

Implementors