pub struct SetMode<B = Unselected> { /* private fields */ }Expand description
The set form: p4 [g-opts] counter [-f -v] countername value.
Sets the value of countername, creating the counter if it does not
already exist.
The B type parameter tracks whether -v has been supplied: Unselected does not display the previous value; ShowPrevious does.
Trait Implementations§
impl<B: Eq> Eq for SetMode<B>
Source§impl ExclusiveOption for SetMode<Unselected>
impl ExclusiveOption for SetMode<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 SetMode<ShowPrevious>
Available on non-crate feature lt2016_1 only.
impl ExclusiveOption for SetMode<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.impl<B: PartialEq> StructuralPartialEq for SetMode<B>
Auto Trait Implementations§
impl<B> Freeze for SetMode<B>where
B: Freeze,
impl<B> RefUnwindSafe for SetMode<B>where
B: RefUnwindSafe,
impl<B> Send for SetMode<B>where
B: Send,
impl<B> Sync for SetMode<B>where
B: Sync,
impl<B> Unpin for SetMode<B>where
B: Unpin,
impl<B> UnsafeUnpin for SetMode<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for SetMode<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