`true` if the segment contains no commits. The segment will, however, contain a header. This thus violates the convention that `is_empty == (len == 0)`.
(&self)
| 204 | /// The segment will, however, contain a header. This thus violates the |
| 205 | /// convention that `is_empty == (len == 0)`. |
| 206 | pub fn is_empty(&self) -> bool { |
| 207 | self.bytes_written <= Header::LEN as u64 |
| 208 | } |
| 209 | |
| 210 | /// Number of bytes written to this segment, including the header. |
| 211 | pub fn len(&self) -> u64 { |
no outgoing calls