pub struct VirtualManifest {
contents: Rc<String>,
document: Rc<ImDocument<String>>,
original_toml: Rc<TomlManifest>,
normalized_toml: Rc<TomlManifest>,
replace: Vec<(PackageIdSpec, Dependency)>,
patch: HashMap<Url, Vec<Dependency>>,
workspace: WorkspaceConfig,
warnings: Warnings,
features: Features,
resolve_behavior: Option<ResolveBehavior>,
}
Fields§
§contents: Rc<String>
§document: Rc<ImDocument<String>>
§original_toml: Rc<TomlManifest>
§normalized_toml: Rc<TomlManifest>
§replace: Vec<(PackageIdSpec, Dependency)>
§patch: HashMap<Url, Vec<Dependency>>
§workspace: WorkspaceConfig
§warnings: Warnings
§features: Features
§resolve_behavior: Option<ResolveBehavior>
Implementations§
Source§impl VirtualManifest
impl VirtualManifest
pub fn new( contents: Rc<String>, document: Rc<ImDocument<String>>, original_toml: Rc<TomlManifest>, normalized_toml: Rc<TomlManifest>, replace: Vec<(PackageIdSpec, Dependency)>, patch: HashMap<Url, Vec<Dependency>>, workspace: WorkspaceConfig, features: Features, resolve_behavior: Option<ResolveBehavior>, ) -> VirtualManifest
Sourcepub fn original_toml(&self) -> &TomlManifest
pub fn original_toml(&self) -> &TomlManifest
The TomlManifest
as parsed from VirtualManifest::document
Sourcepub fn normalized_toml(&self) -> &TomlManifest
pub fn normalized_toml(&self) -> &TomlManifest
The TomlManifest
with all fields expanded
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 Freeze for VirtualManifest
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§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>,
§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: 872 bytes