pub struct StdoutMode<S = Unselected> { /* private fields */ }Expand description
The stdout form: p4 branch [-S stream [-P parent]] -o placeholder.
Write the branch mapping to standard output without invoking an editor.
The optional -S stream displays the mapping generated for the specified
stream; -P parent requires -S and evaluates the stream as if it were
a child of the given parent.
The S type parameter tracks whether -S has been supplied: the
Unselected state carries no stream, and supplying a stream with
Branch::stream transitions to the StreamSelected state, which
unlocks the -P option.
Trait Implementations§
Source§impl<S: Clone> Clone for StdoutMode<S>
impl<S: Clone> Clone for StdoutMode<S>
Source§impl<S: Debug> Debug for StdoutMode<S>
impl<S: Debug> Debug for StdoutMode<S>
Source§impl<S: Default> Default for StdoutMode<S>
impl<S: Default> Default for StdoutMode<S>
Source§impl ExclusiveOption for StdoutMode<Unselected>
impl ExclusiveOption for StdoutMode<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 StdoutMode<StreamSelected>
impl ExclusiveOption for StdoutMode<StreamSelected>
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.Auto Trait Implementations§
impl<S> Freeze for StdoutMode<S>where
S: Freeze,
impl<S> RefUnwindSafe for StdoutMode<S>where
S: RefUnwindSafe,
impl<S> Send for StdoutMode<S>where
S: Send,
impl<S> Sync for StdoutMode<S>where
S: Sync,
impl<S> Unpin for StdoutMode<S>where
S: Unpin,
impl<S> UnsafeUnpin for StdoutMode<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for StdoutMode<S>where
S: 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