Enum broot::command::TriggerType
source · pub enum TriggerType<'v> {
Input(&'v Verb),
Other,
}
Expand description
This rather vague enum might be precised or removed. It serves today to characterize whether a verb execution comes from the input or not (in this case the input is consumed and cleared when the verb is executed).
Variants§
Input(&'v Verb)
the verb was typed in the input and user has hit enter.
Other
probably a key shortcut
Trait Implementations§
source§impl<'v> Clone for TriggerType<'v>
impl<'v> Clone for TriggerType<'v>
source§fn clone(&self) -> TriggerType<'v>
fn clone(&self) -> TriggerType<'v>
Returns a copy 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<'v> Debug for TriggerType<'v>
impl<'v> Debug for TriggerType<'v>
source§impl<'v> PartialEq<TriggerType<'v>> for TriggerType<'v>
impl<'v> PartialEq<TriggerType<'v>> for TriggerType<'v>
source§fn eq(&self, other: &TriggerType<'v>) -> bool
fn eq(&self, other: &TriggerType<'v>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'v> Copy for TriggerType<'v>
impl<'v> StructuralPartialEq for TriggerType<'v>
Auto Trait Implementations§
impl<'v> RefUnwindSafe for TriggerType<'v>
impl<'v> Send for TriggerType<'v>
impl<'v> Sync for TriggerType<'v>
impl<'v> Unpin for TriggerType<'v>
impl<'v> UnwindSafe for TriggerType<'v>
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