pub enum AndOr {
And(Pipeline),
Or(Pipeline),
}
Expand description
Represents a boolean operator used to connect command pipelines, along with the succeeding pipeline.
Variants§
And(Pipeline)
Boolean AND operator; the embedded pipeline is only to be executed if the preceding command has succeeded.
Or(Pipeline)
Boolean OR operator; the embedded pipeline is only to be executed if the preceding command has not succeeded.
Trait Implementations§
Source§impl<'a> From<(PipelineOperator, &'a Pipeline)> for AndOr
impl<'a> From<(PipelineOperator, &'a Pipeline)> for AndOr
Source§fn from(value: (PipelineOperator, &'a Pipeline)) -> Self
fn from(value: (PipelineOperator, &'a Pipeline)) -> Self
Converts to this type from the input type.
Source§impl Into<PipelineOperator> for AndOr
impl Into<PipelineOperator> for AndOr
Source§fn into(self) -> PipelineOperator
fn into(self) -> PipelineOperator
Converts this type into the (usually inferred) input type.
Source§impl PartialEq<AndOr> for PipelineOperator
impl PartialEq<AndOr> for PipelineOperator
Auto Trait Implementations§
impl Freeze for AndOr
impl RefUnwindSafe for AndOr
impl Send for AndOr
impl Sync for AndOr
impl Unpin for AndOr
impl UnwindSafe for AndOr
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