Struct cargo_shim::CargoProject
source · pub struct CargoProject {
pub packages: Vec<CargoPackage>,
pub target_directory: String,
}
Fields
packages: Vec<CargoPackage>
target_directory: String
Implementations
sourceimpl CargoProject
impl CargoProject
pub fn new(
manifest_path: Option<&str>,
no_default_features: bool,
enable_all_features: bool,
features: &[String]
) -> Result<CargoProject, Error>
pub fn default_package(&self) -> Option<&CargoPackage>
pub fn used_packages(
&self,
triplet: &str,
main_package: &CargoPackage,
profile: Profile
) -> Vec<&CargoPackage>
Trait Implementations
sourceimpl Clone for CargoProject
impl Clone for CargoProject
sourcefn clone(&self) -> CargoProject
fn clone(&self) -> CargoProject
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for CargoProject
impl Send for CargoProject
impl Sync for CargoProject
impl Unpin for CargoProject
impl UnwindSafe for CargoProject
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