Struct cargo::core::manifest::VirtualManifest
source · pub struct VirtualManifest {
replace: Vec<(PackageIdSpec, Dependency)>,
patch: HashMap<Url, Vec<Dependency>>,
workspace: WorkspaceConfig,
profiles: Option<TomlProfiles>,
warnings: Warnings,
features: Features,
resolve_behavior: Option<ResolveBehavior>,
}
Fields§
§replace: Vec<(PackageIdSpec, Dependency)>
§patch: HashMap<Url, Vec<Dependency>>
§workspace: WorkspaceConfig
§profiles: Option<TomlProfiles>
§warnings: Warnings
§features: Features
§resolve_behavior: Option<ResolveBehavior>
Implementations§
source§impl 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§
source§impl Clone for VirtualManifest
impl Clone for VirtualManifest
source§fn clone(&self) -> VirtualManifest
fn clone(&self) -> VirtualManifest
Returns a copy of the value. Read more
1.0.0 · source§fn 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 VirtualManifest
impl !Send for VirtualManifest
impl !Sync for VirtualManifest
impl Unpin for VirtualManifest
impl UnwindSafe for VirtualManifest
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 880 bytes