pub struct HeredocInstruction {
pub span: Span,
pub instruction: Box<Instruction>,
pub body: String,
}Expand description
An instruction that carries one or more heredocs, e.g.
RUN <<EOF
echo hello
EOFThe first line is the wrapped instruction (parsed normally, so it still
gets formatted); body is the verbatim text of the heredoc bodies and their
closing delimiters, preserved exactly.
Fields§
§span: Span§instruction: Box<Instruction>§body: StringTrait Implementations§
Source§impl Clone for HeredocInstruction
impl Clone for HeredocInstruction
Source§fn clone(&self) -> HeredocInstruction
fn clone(&self) -> HeredocInstruction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HeredocInstruction
impl Debug for HeredocInstruction
impl Eq for HeredocInstruction
Source§impl PartialEq for HeredocInstruction
impl PartialEq for HeredocInstruction
Source§fn eq(&self, other: &HeredocInstruction) -> bool
fn eq(&self, other: &HeredocInstruction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HeredocInstruction
Auto Trait Implementations§
impl Freeze for HeredocInstruction
impl RefUnwindSafe for HeredocInstruction
impl Send for HeredocInstruction
impl Sync for HeredocInstruction
impl Unpin for HeredocInstruction
impl UnsafeUnpin for HeredocInstruction
impl UnwindSafe for HeredocInstruction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.