pub struct HereDoc {
pub terminator: String,
pub strip_tabs: bool,
pub content: String,
pub quoted: bool,
pub processed: bool,
}Expand description
Here-document state
Fields§
§terminator: String§strip_tabs: bool§content: String§quoted: boolTrue if the terminator was originally quoted (<<'EOF',
<<"EOF", or <<\EOF). Disables variable expansion / command
substitution / arithmetic in the body.
processed: boolTrue once process_heredocs has read the body. Distinct from
“content is empty” because an empty heredoc legitimately has
empty content.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HereDoc
impl RefUnwindSafe for HereDoc
impl Send for HereDoc
impl Sync for HereDoc
impl Unpin for HereDoc
impl UnsafeUnpin for HereDoc
impl UnwindSafe for HereDoc
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