pub struct CollectionResult {
pub contents: Vec<HeredocContent>,
pub terminators_found: Vec<bool>,
pub next_offset: usize,
}Expand description
Result of collecting one or more heredocs from source.
Fields§
§contents: Vec<HeredocContent>Collected heredoc contents in FIFO order, aligned to pending declarations.
terminators_found: Vec<bool>Whether each heredoc terminator was found (aligned to contents).
next_offset: usizeByte offset immediately after the final terminator newline.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CollectionResult
impl RefUnwindSafe for CollectionResult
impl Send for CollectionResult
impl Sync for CollectionResult
impl Unpin for CollectionResult
impl UnsafeUnpin for CollectionResult
impl UnwindSafe for CollectionResult
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