pub struct IncrementMode<B = Unselected> { /* private fields */ }Expand description
The increment form: p4 [g-opts] counter [-f -v] -i countername.
The increment form: p4 [g-opts] counter [-f -v] -i countername.
Increments countername by one and returns the new value.
The B type parameter tracks whether -v has been supplied: Unselected does not display the previous value; ShowPrevious does.
Trait Implementations§
Source§impl<B: Clone> Clone for IncrementMode<B>
impl<B: Clone> Clone for IncrementMode<B>
Source§impl<B: Debug> Debug for IncrementMode<B>
impl<B: Debug> Debug for IncrementMode<B>
Source§impl<B: Default> Default for IncrementMode<B>
impl<B: Default> Default for IncrementMode<B>
impl<B: Eq> Eq for IncrementMode<B>
Source§impl ExclusiveOption for IncrementMode<Unselected>
impl ExclusiveOption for IncrementMode<Unselected>
Source§fn inject_args(&self, command: &mut Command)
fn inject_args(&self, command: &mut Command)
Inject the CLI arguments corresponding to this selection into
command.Source§impl ExclusiveOption for IncrementMode<ShowPrevious>
Available on non-crate feature lt2016_1 only.
impl ExclusiveOption for IncrementMode<ShowPrevious>
Available on non-crate feature
lt2016_1 only.Source§fn inject_args(&self, command: &mut Command)
fn inject_args(&self, command: &mut Command)
Inject the CLI arguments corresponding to this selection into
command.Source§impl<B: PartialEq> PartialEq for IncrementMode<B>
impl<B: PartialEq> PartialEq for IncrementMode<B>
impl<B: PartialEq> StructuralPartialEq for IncrementMode<B>
Auto Trait Implementations§
impl<B> Freeze for IncrementMode<B>where
B: Freeze,
impl<B> RefUnwindSafe for IncrementMode<B>where
B: RefUnwindSafe,
impl<B> Send for IncrementMode<B>where
B: Send,
impl<B> Sync for IncrementMode<B>where
B: Sync,
impl<B> Unpin for IncrementMode<B>where
B: Unpin,
impl<B> UnsafeUnpin for IncrementMode<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for IncrementMode<B>where
B: 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