Struct cargo_subcommand::Subcommand
source · [−]pub struct Subcommand { /* private fields */ }Implementations
sourceimpl Subcommand
impl Subcommand
pub fn new(args: Args) -> Result<Self, Error>
pub fn args(&self) -> &Args
pub fn package(&self) -> &str
pub fn manifest(&self) -> &Path
pub fn target(&self) -> Option<&str>
pub fn profile(&self) -> &Profile
pub fn artifacts(&self) -> &[Artifact]
pub fn target_dir(&self) -> &Path
pub fn host_triple(&self) -> &str
pub fn quiet(&self) -> bool
pub fn config(&self) -> Option<&LocalizedConfig>
pub fn build_dir(&self, target: Option<&str>) -> PathBuf
pub fn artifact(
&self,
artifact: &Artifact,
target: Option<&str>,
crate_type: CrateType
) -> PathBuf
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Subcommand
impl Send for Subcommand
impl Sync for Subcommand
impl Unpin for Subcommand
impl UnwindSafe for Subcommand
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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