(&self)
| 63 | #[must_use] |
| 64 | #[inline(always)] |
| 65 | pub fn pos(&self) -> usize { |
| 66 | let pos = usize::from(self.pos); |
| 67 | debug_assert!(pos < RATE); |
| 68 | if pos < RATE { |
| 69 | pos |
| 70 | } else { |
| 71 | // SAFETY: the type enforces that `pos` is always smaller than `RATE` |
| 72 | unsafe { core::hint::unreachable_unchecked() }; |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | /// Set new cursor position. |
| 77 | /// |
no outgoing calls
no test coverage detected