pub struct Semantics {
pub path: &'static [&'static str],
pub effect: Effect,
pub interactivity: Interactivity,
pub requires: &'static [Requirement],
}Expand description
What a command does, beyond what its declaration says.
Fields§
§path: &'static [&'static str]The command path this describes, the executable’s own name excluded:
&["worktree", "remove"].
effect: EffectWhat running it changes.
interactivity: InteractivityHow it behaves towards a terminal.
requires: &'static [Requirement]What must be true for it to mean anything.
Implementations§
Trait Implementations§
impl Copy for Semantics
impl Eq for Semantics
impl StructuralPartialEq for Semantics
Auto Trait Implementations§
impl Freeze for Semantics
impl RefUnwindSafe for Semantics
impl Send for Semantics
impl Sync for Semantics
impl Unpin for Semantics
impl UnsafeUnpin for Semantics
impl UnwindSafe for Semantics
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.