Appends multiple elements to the arguments.
(&mut self, elements: I, pool: &mut ValueListPool)
| 139 | |
| 140 | /// Appends multiple elements to the arguments. |
| 141 | pub fn extend<I, T>(&mut self, elements: I, pool: &mut ValueListPool) |
| 142 | where |
| 143 | I: IntoIterator<Item = T>, |
| 144 | T: Into<BlockArg>, |
| 145 | { |
| 146 | self.values.extend( |
| 147 | elements |
| 148 | .into_iter() |
| 149 | .map(|elem| elem.into().encode_as_value()), |
| 150 | pool, |
| 151 | ) |
| 152 | } |
| 153 | |
| 154 | /// Return a value that can display this block call. |
| 155 | pub fn display<'a>(&self, pool: &'a ValueListPool) -> DisplayBlockCall<'a> { |