3 ms·
Exactly! Just to add how to deal with Result types in a safer way (as an example): match x { Ok(v) => ..., // doing something with the value v Err(e)
by davidkunz 5y ago
Exactly! Just to add how to deal with Result types in a safer way (as an example):
match x {
Ok(v) => ..., // doing something with the value v
Err(e) => ..., // handling the error e
}