Whether this pack carries nothing.
(&self)
| 189 | |
| 190 | /// Whether this pack carries nothing. |
| 191 | pub fn is_empty(&self) -> bool { |
| 192 | self.objects.is_empty() && self.refs.is_empty() |
| 193 | } |
| 194 | |
| 195 | /// Encode to a compressed wire body. See [`encode`]. |
| 196 | pub fn encode(&self) -> Result<Vec<u8>, SyncError> { |