pub struct GuardBody<'a> {
pub guard: Vec<Cmd<'a>>,
pub body: Vec<Cmd<'a>>,
}Expand description
A guard (condition) and body pair, used by while, until, and if.
Fields§
§guard: Vec<Cmd<'a>>The condition commands.
body: Vec<Cmd<'a>>The body commands.
Trait Implementations§
impl<'a> Eq for GuardBody<'a>
impl<'a> StructuralPartialEq for GuardBody<'a>
Auto Trait Implementations§
impl<'a> Freeze for GuardBody<'a>
impl<'a> RefUnwindSafe for GuardBody<'a>
impl<'a> Send for GuardBody<'a>
impl<'a> Sync for GuardBody<'a>
impl<'a> Unpin for GuardBody<'a>
impl<'a> UnsafeUnpin for GuardBody<'a>
impl<'a> UnwindSafe for GuardBody<'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