to-str

Crates.ioto-str
lib.rsto-str
version1.0.0
sourcesrc
created_at2020-05-10 10:32:42.344158
updated_at2020-05-10 10:32:42.344158
descriptionEfficient interface to convert value to it's textual representation
homepage
repositoryhttps://github.com/DoumanAsh/to-str
max_upload_size
id239587
size19,467
Douman (DoumanAsh)

documentation

README

to-str

Crates.io Documentation

Generic trait for efficient conversion to string. Suitable for no_std

Performance

It is up to ToStr implementation, but in general default impls are efficient alternative to Rust's core fmt

Integers

Inspired by C++ fmt and itoa

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

Commit count: 15

cargo fmt