pub struct Args { /* private fields */ }
Implementations
sourceimpl Args
impl Args
sourcepub fn new<T, P, A, S>(
target: Option<T>,
manifest_path: Option<P>,
verbosity: Option<Verbosity>,
other_args: A
) -> Result<Self> where
T: Into<String> + Clone,
P: AsRef<Path>,
A: IntoIterator<Item = S>,
S: AsRef<str>,
pub fn new<T, P, A, S>(
target: Option<T>,
manifest_path: Option<P>,
verbosity: Option<Verbosity>,
other_args: A
) -> Result<Self> where
T: Into<String> + Clone,
P: AsRef<Path>,
A: IntoIterator<Item = S>,
S: AsRef<str>,
Create args explicitly, with other args passed unchanged to cargo invocation
sourcepub fn from_raw<A, S>(all: A) -> Result<Self> where
A: IntoIterator<Item = S>,
S: AsRef<str>,
pub fn from_raw<A, S>(all: A) -> Result<Self> where
A: IntoIterator<Item = S>,
S: AsRef<str>,
Parse raw args from command line
pub fn all(&self) -> &[String]
pub fn target(&self) -> Option<&str>
pub fn manifest_path(&self) -> Option<&Path>
pub fn quiet(&self) -> bool
pub fn verbose(&self) -> bool
Auto Trait Implementations
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more