pub struct SourceChunk {
pub source: String,
pub file: String,
pub line_offset: usize,
}
Expand description
Chunk of source code along with information pointing back at the origin
Fields§
§source: String
Source text
file: String
File the code came from
line_offset: usize
Line in the file
at which this snippet starts
Trait Implementations§
Source§impl Debug for SourceChunk
impl Debug for SourceChunk
Source§impl PartialEq for SourceChunk
impl PartialEq for SourceChunk
impl Eq for SourceChunk
impl StructuralPartialEq for SourceChunk
Auto Trait Implementations§
impl Freeze for SourceChunk
impl RefUnwindSafe for SourceChunk
impl Send for SourceChunk
impl Sync for SourceChunk
impl Unpin for SourceChunk
impl UnwindSafe for SourceChunk
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