Struct mei::Cargo

source ·
pub struct Cargo<M> { /* private fields */ }

Implementations§

source§

impl<M> Cargo<M>

source

pub fn profile<P>(&mut self, profile: P) -> &mut Selfwhere P: Into<Profile>,

source

pub fn target(&mut self, target: Target) -> &mut Self

source

pub fn path_of(&self, artifact: &Artifact) -> PathBuf

source§

impl Cargo<Build>

source

pub fn manifest<S>(&mut self, manifest: S) -> &mut Selfwhere S: Into<Manifest>,

source

pub fn spawn(&mut self)

Spawns the cargo process.

This is a shortcut method of the Spawn trait without having to import this in the scope.

source§

impl<'a> Cargo<Install<'a>>

source

pub fn bin(&mut self, bin: &'a str) -> &mut Self

source

pub fn version(&mut self, version: &'a VersionReq) -> &mut Self

Trait Implementations§

source§

impl<M> Spawn for Cargo<M>where M: Mode,

source§

fn spawn(&mut self)

Auto Trait Implementations§

§

impl<M> RefUnwindSafe for Cargo<M>where M: RefUnwindSafe,

§

impl<M> Send for Cargo<M>where M: Send,

§

impl<M> Sync for Cargo<M>where M: Sync,

§

impl<M> Unpin for Cargo<M>where M: Unpin,

§

impl<M> UnwindSafe for Cargo<M>where M: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.