pub enum AndOr<T> {
And(T),
Or(T),
}
Expand description
A command which conditionally runs based on the exit status of the previous command.
Variants§
And(T)
A compound command which should run only if the previously run command succeeded.
Or(T)
A compound command which should run only if the previously run command failed.
Trait Implementations§
impl<T: Eq> Eq for AndOr<T>
impl<T> StructuralPartialEq for AndOr<T>
Auto Trait Implementations§
impl<T> Freeze for AndOr<T>where
T: Freeze,
impl<T> RefUnwindSafe for AndOr<T>where
T: RefUnwindSafe,
impl<T> Send for AndOr<T>where
T: Send,
impl<T> Sync for AndOr<T>where
T: Sync,
impl<T> Unpin for AndOr<T>where
T: Unpin,
impl<T> UnwindSafe for AndOr<T>where
T: 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