Enum build_target::Profile
source · [−]Expand description
Profile of the current build.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Dev
dev
: The dev profile is used for normal development and debugging.
It is the default for build commands like cargo build
.
Release
release
: The release profile is intended for optimized artifacts used for releases and in production.
This profile is used when the --release
flag is used, and is the default for cargo install
.
Test
test
: The test profile is used for building tests, or when benchmarks are built in debug mode with cargo build
.
Bench
bench
: The bench profile is used for building benchmarks, or when tests are built with the --release
flag.
Other(Cow<'a, str>)
Custom or unknown profile.
Implementations
Trait Implementations
sourceimpl<'a> Ord for Profile<'a>
impl<'a> Ord for Profile<'a>
sourceimpl<'a> PartialOrd<Profile<'a>> for Profile<'a>
impl<'a> PartialOrd<Profile<'a>> for Profile<'a>
sourcefn partial_cmp(&self, other: &Profile<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &Profile<'a>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<'a> Eq for Profile<'a>
impl<'a> StructuralEq for Profile<'a>
impl<'a> StructuralPartialEq for Profile<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Profile<'a>
impl<'a> Send for Profile<'a>
impl<'a> Sync for Profile<'a>
impl<'a> Unpin for Profile<'a>
impl<'a> UnwindSafe for Profile<'a>
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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more