from-string

Crates.iofrom-string
lib.rsfrom-string
version
sourcesrc
created_at2025-03-23 21:21:58.883089+00
updated_at2025-03-23 21:21:58.883089+00
descriptionA crate that provides a FromString trait with a String to String noop.
homepagehttps://github.com/mitsuhiko/from-string
repositoryhttps://github.com/mitsuhiko/from-string
max_upload_size
id1603071
Cargo.toml error:TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Armin Ronacher (mitsuhiko)

documentation

README

from-string

A crate that provides a FromString trait that works similar to FromStr but operates on owned strings. It's implemented for all types that implement FromStr with compatible errors and it has a fast-path for the no-op string to string conversion.

For convenience reasons it is constrained to conversions that return a Box<dyn Error + Send + Sync>.

use from_string::from_string;

let s: String = from_string("Hello World!").unwrap();
let i: u64 = from_string("42").unwrap();

License and Links

Commit count: 0

cargo fmt