pub struct GuardBodyPair<T> {
pub guard: T,
pub body: T,
}Expand description
A grouping of guard and body commands.
Fields§
§guard: TThe guard commands, which if successful, should lead to the execution of the body commands.
body: TThe body commands to execute if the guard is successful.
Trait Implementations§
Source§impl<T: Clone> Clone for GuardBodyPair<T>
impl<T: Clone> Clone for GuardBodyPair<T>
Source§fn clone(&self) -> GuardBodyPair<T>
fn clone(&self) -> GuardBodyPair<T>
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<T: Debug> Debug for GuardBodyPair<T>
impl<T: Debug> Debug for GuardBodyPair<T>
Source§impl<T> From<GuardBodyPair<T>> for GuardBodyPair<Vec<T>>
impl<T> From<GuardBodyPair<T>> for GuardBodyPair<Vec<T>>
Source§fn from(guard_body_pair: GuardBodyPair<T>) -> Self
fn from(guard_body_pair: GuardBodyPair<T>) -> Self
Converts to this type from the input type.
Source§impl<T: PartialEq> PartialEq for GuardBodyPair<T>
impl<T: PartialEq> PartialEq for GuardBodyPair<T>
impl<T: Eq> Eq for GuardBodyPair<T>
impl<T> StructuralPartialEq for GuardBodyPair<T>
Auto Trait Implementations§
impl<T> Freeze for GuardBodyPair<T>where
T: Freeze,
impl<T> RefUnwindSafe for GuardBodyPair<T>where
T: RefUnwindSafe,
impl<T> Send for GuardBodyPair<T>where
T: Send,
impl<T> Sync for GuardBodyPair<T>where
T: Sync,
impl<T> Unpin for GuardBodyPair<T>where
T: Unpin,
impl<T> UnwindSafe for GuardBodyPair<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