rust/hg-core/src/revlog/index.rs
changeset 48238 5e77bdc29d56
parent 48210 61ce70fd420e
child 48496 1fb3615dfce2
equal deleted inserted replaced
48237:0cc69017d47f 48238:5e77bdc29d56
    55         }
    55         }
    56     }
    56     }
    57 
    57 
    58     /// Value of the inline flag.
    58     /// Value of the inline flag.
    59     pub fn is_inline(&self) -> bool {
    59     pub fn is_inline(&self) -> bool {
    60         is_inline(&self.bytes)
    60         self.offsets.is_some()
    61     }
    61     }
    62 
    62 
    63     /// Return a slice of bytes if `revlog` is inline. Panic if not.
    63     /// Return a slice of bytes if `revlog` is inline. Panic if not.
    64     pub fn data(&self, start: usize, end: usize) -> &[u8] {
    64     pub fn data(&self, start: usize, end: usize) -> &[u8] {
    65         if !self.is_inline() {
    65         if !self.is_inline() {