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/configfiles (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.rsscripts and their dependencies.[profile.dev]- Default (hard-coded) values.
Fields§
§default: ProfileThe 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,
§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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§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>
impl<T> ErasedDestructor for Twhere
T: 'static,
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: 480 bytes