(cursor: Cursor, source: &'a str)
| 81 | |
| 82 | #[inline(always)] |
| 83 | pub const fn from(cursor: Cursor, source: &'a str) -> Self { |
| 84 | debug_assert!( |
| 85 | (cursor.len() as usize) == source.len(), |
| 86 | "A SourceCursor should be constructed with a source that matches the length of the cursor!" |
| 87 | ); |
| 88 | Self { |
| 89 | cursor, |
| 90 | source, |
| 91 | should_compact: false, |
| 92 | #[cfg(feature = "egg")] |
| 93 | should_expand: false, |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | #[inline(always)] |
| 98 | pub const fn cursor(&self) -> Cursor { |
no test coverage detected