(mut self, k: T, v: T)
| 24 | } |
| 25 | |
| 26 | pub fn with<T: Into<String>>(mut self, k: T, v: T) -> Self { |
| 27 | self.attrs.insert(k.into(), v.into()); |
| 28 | self |
| 29 | } |
| 30 | |
| 31 | pub fn with_attrs(mut self, attrs: impl Iterator<Item = (String, String)>) -> Self { |
| 32 | self.attrs.extend(attrs); |
no outgoing calls