Result that is infallible (as in it can't fail), a Result that can have many types of errors, or something that can partially failed?if it's infallible i'd just drop the
Result and just return T directlyif there can be many types of errors, i'd just add the anyhow crate and return a
Result<T> instead, where Result is anyhow::Result and not std::result::Resultif it can partially fail i'd do:
enum FunctionReturn {
Ok(T),
PartialError {
contents: T,
error: E,
},
Error(E)
}




