MCPcopy Create free account
hub / github.com/bedroombuilds/python2rust / from

Method from

0a_error_handling/rust/more_boilerplate.rs:42–44  ·  view source on GitHub ↗
(err: ParseIntError)

Source from the content-addressed store, hash-verified

40// needs to be converted into a `DoubleError`.
41impl From<ParseIntError> for DoubleError {
42 fn from(err: ParseIntError) -> DoubleError {
43 DoubleError::Parse(err)
44 }
45}
46
47fn double_first(vec: Vec<&str>) -> Result<i32> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected