If an author is None, then iterate through the substitution options until one returns Some.
The wrinkle is what to do with that substituted variable at that point. In 1.0, it's suppressed, which I think is correct. But then how best to do that technically?
Seems likely will need to store the substituted value or type, which is not necessarily a Contributor, on the Template implementation.
I guess there's only ever going to be one substituted item, so maybe we need a mutable variable that stores that type?
So how to do this, in Rust.
If an author is None, then iterate through the substitution options until one returns
Some
.The wrinkle is what to do with that substituted variable at that point. In 1.0, it's suppressed, which I think is correct. But then how best to do that technically?
Seems likely will need to store the substituted value or type, which is not necessarily a
Contributor
, on theTemplate
implementation.I guess there's only ever going to be one substituted item, so maybe we need a mutable variable that stores that type?