#[non_exhaustive]pub enum HeredocBody<'a> {
Literal(&'a str),
Interpolated(Vec<Atom<'a>>),
}Expand description
The body of a heredoc (here-document).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Literal(&'a str)
Quoted delimiter — no expansion (literal text).
Interpolated(Vec<Atom<'a>>)
Unquoted delimiter — variable and command expansion.
Trait Implementations§
Source§impl<'a> Clone for HeredocBody<'a>
impl<'a> Clone for HeredocBody<'a>
Source§fn clone(&self) -> HeredocBody<'a>
fn clone(&self) -> HeredocBody<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for HeredocBody<'a>
impl<'a> Debug for HeredocBody<'a>
Source§impl<'a> PartialEq for HeredocBody<'a>
impl<'a> PartialEq for HeredocBody<'a>
impl<'a> Eq for HeredocBody<'a>
impl<'a> StructuralPartialEq for HeredocBody<'a>
Auto Trait Implementations§
impl<'a> Freeze for HeredocBody<'a>
impl<'a> RefUnwindSafe for HeredocBody<'a>
impl<'a> Send for HeredocBody<'a>
impl<'a> Sync for HeredocBody<'a>
impl<'a> Unpin for HeredocBody<'a>
impl<'a> UnsafeUnpin for HeredocBody<'a>
impl<'a> UnwindSafe for HeredocBody<'a>
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