render_uses

Function render_uses 

Source
pub fn render_uses(effects: &[Effect]) -> String
Expand description

The uses … clause of a signature, or nothing for a row with no atoms in it.

Its own function because two things write it: a published signature, and the inlay hint that offers an inferred row as the clause an author could paste into one (crate::editor::Editor::hints). A hint spelling the row its own way would be a second renderer of the thing §4.6 says there is only one of, and the way it would go wrong is silent — the hint reads plausibly and the signature it suggests does not parse.