(&self, other: &Self)
| 370 | |
| 371 | impl PartialEq for PostingListHead<'_> { |
| 372 | fn eq(&self, other: &Self) -> bool { |
| 373 | let Some(s) = self.peek() else { unreachable!() }; |
| 374 | |
| 375 | let Some(o) = other.peek() else { |
| 376 | unreachable!() |
| 377 | }; |
| 378 | |
| 379 | s.0.eq(&o.0) |
| 380 | } |
| 381 | } |
| 382 | |
| 383 | fn get_idf(documents_count: u32, documents_containing_term: u32) -> f32 { |