pub struct VirtualManifest { /* private fields */ }
Implementations
sourceimpl VirtualManifest
impl VirtualManifest
pub fn new(
replace: Vec<(PackageIdSpec, Dependency)>,
patch: HashMap<Url, Vec<Dependency>>,
workspace: WorkspaceConfig,
profiles: Option<TomlProfiles>,
features: Features,
resolve_behavior: Option<ResolveBehavior>
) -> VirtualManifest
pub fn replace(&self) -> &[(PackageIdSpec, Dependency)]
pub fn patch(&self) -> &HashMap<Url, Vec<Dependency>>
pub fn workspace_config(&self) -> &WorkspaceConfig
pub fn profiles(&self) -> Option<&TomlProfiles>
pub fn warnings_mut(&mut self) -> &mut Warnings
pub fn warnings(&self) -> &Warnings
pub fn unstable_features(&self) -> &Features
sourcepub fn resolve_behavior(&self) -> Option<ResolveBehavior>
pub fn resolve_behavior(&self) -> Option<ResolveBehavior>
The style of resolver behavior to use, declared with the resolver
field.
Returns None
if it is not specified.
Trait Implementations
sourceimpl Clone for VirtualManifest
impl Clone for VirtualManifest
sourcefn clone(&self) -> VirtualManifest
fn clone(&self) -> VirtualManifest
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 more
Auto Trait Implementations
impl RefUnwindSafe for VirtualManifest
impl !Send for VirtualManifest
impl !Sync for VirtualManifest
impl Unpin for VirtualManifest
impl UnwindSafe for VirtualManifest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more