pub struct BashCode<'a> {
pub text: &'a str,
pub vars: HashSet<Ident<'a>, BuildHasherDefault<FxHasher>>,
}
Expand description
A block of bash code.
Fields§
§text: &'a str
The literal text of the code.
vars: HashSet<Ident<'a>, BuildHasherDefault<FxHasher>>
Set of variable names referenced in the code.
Trait Implementations§
impl<'a> Eq for BashCode<'a>
impl<'a> StructuralPartialEq for BashCode<'a>
Auto Trait Implementations§
impl<'a> Freeze for BashCode<'a>
impl<'a> RefUnwindSafe for BashCode<'a>
impl<'a> Send for BashCode<'a>
impl<'a> Sync for BashCode<'a>
impl<'a> Unpin for BashCode<'a>
impl<'a> UnwindSafe for BashCode<'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