rust/hg-core/src/revlog/node.rs
changeset 44187 be52b7372ec2
parent 44183 e52401a95b94
child 44388 5ac1eecc9c64
equal deleted inserted replaced
44186:796d05f3fa84 44187:be52b7372ec2
   221     /// Retrieve the `i`th half-byte from the prefix.
   221     /// Retrieve the `i`th half-byte from the prefix.
   222     ///
   222     ///
   223     /// This is also the `i`th hexadecimal digit in numeric form,
   223     /// This is also the `i`th hexadecimal digit in numeric form,
   224     /// also called a [nybble](https://en.wikipedia.org/wiki/Nibble).
   224     /// also called a [nybble](https://en.wikipedia.org/wiki/Nibble).
   225     pub fn get_nybble(&self, i: usize) -> u8 {
   225     pub fn get_nybble(&self, i: usize) -> u8 {
       
   226         assert!(i < self.len());
   226         get_nybble(self.buf, i)
   227         get_nybble(self.buf, i)
   227     }
   228     }
   228 }
   229 }
   229 
   230 
   230 /// A shortcut for full `Node` references
   231 /// A shortcut for full `Node` references