equal
deleted
inserted
replaced
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 |