MCPcopy Create free account
hub / github.com/Lintermute/lazy_errors / from_str

Method from_str

xtask/src/version.rs:62–68  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

60 type Err = Error;
61
62 fn from_str(s: &str) -> Result<Self> {
63 if let Ok(v) = MajorMinorPatch::from_str(s) {
64 return Ok(VersionNumber::MajorMinorPatch(v));
65 }
66
67 Ok(VersionNumber::CustomVersion(s.parse()?))
68 }
69}
70
71impl FromStr for MajorMinorPatch {

Callers

nothing calls this directly

Calls 3

MajorMinorPatchClass · 0.85
CustomVersionClass · 0.85
is_emptyMethod · 0.80

Tested by

no test coverage detected