Crates.io | to-str |
lib.rs | to-str |
version | 1.0.0 |
source | src |
created_at | 2020-05-10 10:32:42.344158 |
updated_at | 2020-05-10 10:32:42.344158 |
description | Efficient interface to convert value to it's textual representation |
homepage | |
repository | https://github.com/DoumanAsh/to-str |
max_upload_size | |
id | 239587 |
size | 19,467 |
Generic trait for efficient conversion to string.
Suitable for no_std
It is up to ToStr
implementation, but in general default impls are efficient alternative to Rust's core fmt
Performance in general is close to itoa
, but lags a bit behind due to some missing optimization opportunities (possibly due to slices in ToStr
).
Differently from itoa
though the implementation avoids generics per integer type, but rather uses common functions for u8
, u64
and u128
types