pub struct Aliases { /* private fields */ }Expand description
p4 [g-opts] aliases: display command aliases that are currently defined
in a .p4aliases file.
Implementations§
Source§impl Aliases
impl Aliases
Sourcepub fn new(bin: impl Into<PathBuf>, global_opts: GlobalOpts) -> Self
pub fn new(bin: impl Into<PathBuf>, global_opts: GlobalOpts) -> Self
Creates a new p4 aliases command.
bin is the path to the Perforce command-line executable.
Sourcepub fn get_global_opts(&self) -> &GlobalOpts
pub fn get_global_opts(&self) -> &GlobalOpts
Sourcepub fn set_global_opts(&mut self, v: GlobalOpts) -> &mut Self
pub fn set_global_opts(&mut self, v: GlobalOpts) -> &mut Self
Sourcepub fn global_opts(self, v: GlobalOpts) -> Self
pub fn global_opts(self, v: GlobalOpts) -> Self
Trait Implementations§
Source§impl ParameterizedSpawn<()> for Aliases
impl ParameterizedSpawn<()> for Aliases
Source§impl SubCommand for Aliases
impl SubCommand for Aliases
fn name(&self) -> &str
fn inject_local_args(&self, _: &mut Command)
fn global_opts(&self) -> Option<&GlobalOpts>
fn inject_args(&self, command: &mut Command)
fn setup_command<S: AsRef<OsStr>>(&self, bin: S) -> Command
Auto Trait Implementations§
impl Freeze for Aliases
impl RefUnwindSafe for Aliases
impl Send for Aliases
impl Sync for Aliases
impl Unpin for Aliases
impl UnsafeUnpin for Aliases
impl UnwindSafe for Aliases
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