(ss: &Substring, hasher: &mut blake3::Hasher)
| 602 | Int::NegSucc(n) => { |
| 603 | hasher.update(&[1]); |
| 604 | hasher.update(&n.to_le_bytes()); |
| 605 | }, |
| 606 | } |
| 607 | } |
| 608 | |
| 609 | /// A substring reference: a string together with start and stop byte positions. |
| 610 | #[derive(Debug, PartialEq, Eq, Clone, Hash)] |
| 611 | pub struct Substring { |
| 612 | /// The underlying string. |
no test coverage detected