(&self, value: &BigInt)
| 129 | |
| 130 | #[inline] |
| 131 | pub fn index_of(&self, value: &BigInt) -> Option<BigInt> { |
| 132 | let step = self.step.as_bigint(); |
| 133 | match self.offset(value) { |
| 134 | Some(ref offset) if offset.is_multiple_of(step) => Some((offset / step).abs()), |
| 135 | Some(_) | None => None, |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | #[inline] |
| 140 | pub fn is_empty(&self) -> bool { |