Adds metadata from `other` into `self`, overwriting any existing keys.
(&mut self, other: Self)
| 291 | |
| 292 | /// Adds metadata from `other` into `self`, overwriting any existing keys. |
| 293 | pub fn extend(&mut self, other: Self) { |
| 294 | if other.is_empty() { |
| 295 | return; |
| 296 | } |
| 297 | let other = Arc::unwrap_or_clone(other.into_inner()); |
| 298 | Arc::make_mut(&mut self.inner).extend(other); |
| 299 | } |
| 300 | |
| 301 | /// Returns true if the metadata is empty. |
| 302 | pub fn is_empty(&self) -> bool { |