enum FunctionReturn {
Success(Vec<Log>),
ValidationFailed(Vec<Log>),
Error(Error),
}match to operate based on how successful the function was
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?Result and just return T directlyResult<T> instead, where Result is anyhow::Result and not std::result::Resultenum FunctionReturn {
Ok(T),
PartialError {
contents: T,
error: E,
},
Error(E)
}
main:
j .LBB0_1
.LBB0_1:
j .LBB0_1