pub struct Chunk {
pub range: TextRange,
pub start: OutputPosition,
pub end: OutputPosition,
}Expand description
A chunk of text with its range and position information.
Fields§
§range: TextRangeByte range in the original text. Use this to slice the original string.
start: OutputPositionStart position (character offset, line, column).
end: OutputPositionEnd position (character offset, line, column).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Chunk
impl RefUnwindSafe for Chunk
impl Send for Chunk
impl Sync for Chunk
impl Unpin for Chunk
impl UnwindSafe for Chunk
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more