pub enum BuildMode {
Dev,
Release,
}Expand description
Which diagnostics this build compiles in.
Read CURRENT for this build’s mode, or use dev_only!
to gate a block on it. See the module docs for how a mode is chosen and why there are
two of them rather than three.
Variants§
Dev
Development diagnostics are compiled in.
Selected by debug_assertions (so: any cargo command that has not been pointed at the
release profile) or by this crate’s dev feature.
Release
Development diagnostics are compiled out.
Selected by the release profile, and by any profile inheriting it, which includes a
profiling build. Enable the dev feature to get an optimized build that still reports.
Implementations§
Trait Implementations§
impl Copy for BuildMode
impl Eq for BuildMode
impl StructuralPartialEq for BuildMode
Auto Trait Implementations§
impl Freeze for BuildMode
impl RefUnwindSafe for BuildMode
impl Send for BuildMode
impl Sync for BuildMode
impl Unpin for BuildMode
impl UnsafeUnpin for BuildMode
impl UnwindSafe for BuildMode
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