pub struct Subcommand { /* private fields */ }
Implementations§
Source§impl Subcommand
impl Subcommand
pub fn new(args: Args) -> Result<Self, Error>
pub fn args(&self) -> &Args
pub fn package(&self) -> &str
pub fn workspace_manifest(&self) -> Option<&Path>
pub fn manifest(&self) -> &Path
pub fn target(&self) -> Option<&str>
pub fn profile(&self) -> &Profile
pub fn artifacts(&self) -> impl Iterator<Item = &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 Freeze for Subcommand
impl RefUnwindSafe for Subcommand
impl Send for Subcommand
impl Sync for Subcommand
impl Unpin for Subcommand
impl UnwindSafe for Subcommand
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