Registry / utility / try-from

try-from

JSON →
library0.3.2rscratesunverified

Provides TryFrom and TryInto traits for failable conversions that return a Result.

# Cargo.toml [dependencies] try_from = "0.3.2"
INSTALL
IMPORT
SIG · TRY-FROM
T
try-from
utilityrustv0.3.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TryFrom
use try_from::TryFrom;

Demonstrates using TryFrom for a failable conversion.

use try_from::TryFrom; let x: Result<i32, _> = i32::try_from(42u32); println!("{:?}", x);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
try-from — cargo add try-from · libregistry