(title: S, f: F, v: &'a [T])
| 32 | } |
| 33 | |
| 34 | pub(crate) fn title_comma_separate<'a, F, T, S>(title: S, f: F, v: &'a [T]) -> RcDoc<'a, ()> |
| 35 | where |
| 36 | F: Fn(&'a T) -> RcDoc<'a>, |
| 37 | S: Into<String>, |
| 38 | { |
| 39 | let title = RcDoc::text(title.into()); |
| 40 | if v.is_empty() { |
| 41 | title |
| 42 | } else { |
| 43 | nest_comma_separate(title, f, v) |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | pub(crate) fn nest_comma_separate<'a, F, T: 'a, I>( |
| 48 | title: RcDoc<'a, ()>, |
no test coverage detected