Struct cargo::core::profiles::ProfileMaker
source · struct ProfileMaker {
default: Profile,
toml: Option<TomlProfile>,
}
Expand description
An object used for handling the profile hierarchy.
The precedence of profiles are (first one wins):
- Profiles in
.cargo/config
files (using same order as below). [profile.dev.package.name]
– a named package.[profile.dev.package."*"]
– this cannot apply to workspace members.[profile.dev.build-override]
– this can only apply tobuild.rs
scripts and their dependencies.[profile.dev]
- Default (hard-coded) values.
Fields§
§default: Profile
The starting, hard-coded defaults for the profile.
toml: Option<TomlProfile>
The TOML profile defined in Cargo.toml
or config.
This is None if the user did not specify one, in which case the
default
is used. Note that the built-in defaults for test/bench/doc
always set this since they need to declare the inherits
value.
Implementations§
source§impl ProfileMaker
impl ProfileMaker
sourcefn new(default: Profile, toml: Option<TomlProfile>) -> ProfileMaker
fn new(default: Profile, toml: Option<TomlProfile>) -> ProfileMaker
Creates a new ProfileMaker
.
Note that this does not process inherits
, the caller is responsible for that.
Trait Implementations§
source§impl Clone for ProfileMaker
impl Clone for ProfileMaker
source§fn clone(&self) -> ProfileMaker
fn clone(&self) -> ProfileMaker
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for ProfileMaker
impl RefUnwindSafe for ProfileMaker
impl Send for ProfileMaker
impl Sync for ProfileMaker
impl Unpin for ProfileMaker
impl UnwindSafe for ProfileMaker
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§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: 472 bytes