pub struct Cargo<'a> { /* private fields */ }Implementations§
Source§impl<'a> Cargo<'a>
impl<'a> Cargo<'a>
pub fn new(config: &'a mut Config, args: Vec<&'a str>) -> Result<Self, Error>
pub fn cmd(&self) -> &str
pub fn target(&self) -> Option<&str>
pub fn package(&self) -> Result<&Package, Error>
pub fn release(&self) -> bool
pub fn host_triple(&self) -> Result<String, Error>
pub fn target_triple(&self) -> Result<String, Error>
pub fn workspace(&self) -> &Workspace<'_>
pub fn target_dir(&self) -> PathBuf
pub fn build_dir(&self) -> PathBuf
pub fn exec(&self) -> Result<(), Error>
pub fn spawn(&self) -> Result<(), Error>
Auto Trait Implementations§
impl<'a> !Freeze for Cargo<'a>
impl<'a> !RefUnwindSafe for Cargo<'a>
impl<'a> !Send for Cargo<'a>
impl<'a> !Sync for Cargo<'a>
impl<'a> Unpin for Cargo<'a>
impl<'a> !UnwindSafe for Cargo<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more