pub struct IfFragments<C> {
pub conditionals: Vec<GuardBodyPairGroup<C>>,
pub else_branch: Option<CommandGroup<C>>,
}
Expand description
Parsed fragments relating to a shell if
command.
Fields§
§conditionals: Vec<GuardBodyPairGroup<C>>
A list of conditionals branches.
else_branch: Option<CommandGroup<C>>
The else
branch, if any,
Trait Implementations§
Source§impl<C: Clone> Clone for IfFragments<C>
impl<C: Clone> Clone for IfFragments<C>
Source§fn clone(&self) -> IfFragments<C>
fn clone(&self) -> IfFragments<C>
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<C: Debug> Debug for IfFragments<C>
impl<C: Debug> Debug for IfFragments<C>
Source§impl<C: PartialEq> PartialEq for IfFragments<C>
impl<C: PartialEq> PartialEq for IfFragments<C>
impl<C: Eq> Eq for IfFragments<C>
impl<C> StructuralPartialEq for IfFragments<C>
Auto Trait Implementations§
impl<C> Freeze for IfFragments<C>
impl<C> RefUnwindSafe for IfFragments<C>where
C: RefUnwindSafe,
impl<C> Send for IfFragments<C>where
C: Send,
impl<C> Sync for IfFragments<C>where
C: Sync,
impl<C> Unpin for IfFragments<C>where
C: Unpin,
impl<C> UnwindSafe for IfFragments<C>where
C: UnwindSafe,
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