pub enum BuildProfile {
Dev,
Release,
Profiling,
Custom(String),
}Expand description
The build profile controls whether optimizations, debug info, and assertions are enabled or disabled.
Variants§
Dev
Enable assertions and debug info. Disable optimizations.
Release
Enable optimizations. Disable assertions and debug info.
Profiling
Enable optimizations and debug info. Disable assertions.
Custom(String)
User-defined profile with –profile flag
Trait Implementations§
Source§impl Clone for BuildProfile
impl Clone for BuildProfile
Source§fn clone(&self) -> BuildProfile
fn clone(&self) -> BuildProfile
Returns a duplicate 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 BuildProfile
impl RefUnwindSafe for BuildProfile
impl Send for BuildProfile
impl Sync for BuildProfile
impl Unpin for BuildProfile
impl UnwindSafe for BuildProfile
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