pub struct AndOrList<T> {
pub first: T,
pub rest: Vec<AndOr<T>>,
}
Expand description
A nonempty list of AndOr
commands, e.g. foo && bar || baz
.
Fields§
§first: T
The first command that always runs.
rest: Vec<AndOr<T>>
The remainder of the conditional commands which may or may not run.
Trait Implementations§
impl<T: Eq> Eq for AndOrList<T>
impl<T> StructuralPartialEq for AndOrList<T>
Auto Trait Implementations§
impl<T> Freeze for AndOrList<T>where
T: Freeze,
impl<T> RefUnwindSafe for AndOrList<T>where
T: RefUnwindSafe,
impl<T> Send for AndOrList<T>where
T: Send,
impl<T> Sync for AndOrList<T>where
T: Sync,
impl<T> Unpin for AndOrList<T>where
T: Unpin,
impl<T> UnwindSafe for AndOrList<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