We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bda2b00 commit 7893419Copy full SHA for 7893419
src/snippet.rs
@@ -34,10 +34,20 @@ impl<'a> Message<'a> {
34
self
35
}
36
37
+ pub fn snippets(mut self, slice: impl IntoIterator<Item = Snippet<'a>>) -> Self {
38
+ self.snippets.extend(slice);
39
+ self
40
+ }
41
+
42
pub fn footer(mut self, footer: Label<'a>) -> Self {
43
self.footer.push(footer);
44
45
46
47
+ pub fn footers(mut self, footer: impl IntoIterator<Item = Label<'a>>) -> Self {
48
+ self.footer.extend(footer);
49
50
51
52
53
pub struct Label<'a> {
@@ -116,6 +126,11 @@ impl<'a> Snippet<'a> {
116
126
117
127
118
128
129
+ pub fn annotations(mut self, annotation: impl IntoIterator<Item = Annotation<'a>>) -> Self {
130
+ self.annotations.extend(annotation);
131
132
133
119
134
pub fn fold(mut self, fold: bool) -> Self {
120
135
self.fold = fold;
121
136
0 commit comments