pub struct HeredocContent {
pub segments: Vec<ByteSpan>,
pub full_span: ByteSpan,
pub terminated: bool,
}Expand description
Collected content. Each segment is a line after indent stripping (no CR/LF).
Fields§
§segments: Vec<ByteSpan>Individual line spans after indent stripping, excluding line terminators.
full_span: ByteSpanSpan from start of first segment to end of last segment (empty span if no content).
terminated: boolWhether the heredoc was correctly terminated by its label.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HeredocContent
impl RefUnwindSafe for HeredocContent
impl Send for HeredocContent
impl Sync for HeredocContent
impl Unpin for HeredocContent
impl UnsafeUnpin for HeredocContent
impl UnwindSafe for HeredocContent
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