Enum debris_common::config::OptMode
source · pub enum OptMode {
None,
Debug,
Full,
}
Expand description
How to optimize the code
Variants§
None
No optimizations
Debug
Some optimizations, but no aggressive inlining (default)
Full
Full optimizations
Implementations§
source§impl OptMode
impl OptMode
pub fn disable_optimization(&self) -> bool
sourcepub fn aggressive_function_inlining(&self) -> bool
pub fn aggressive_function_inlining(&self) -> bool
Returns whether the optimizer should perform aggressive function inlining
Trait Implementations§
source§impl PartialEq for OptMode
impl PartialEq for OptMode
impl Copy for OptMode
impl Eq for OptMode
impl StructuralEq for OptMode
impl StructuralPartialEq for OptMode
Auto Trait Implementations§
impl RefUnwindSafe for OptMode
impl Send for OptMode
impl Sync for OptMode
impl Unpin for OptMode
impl UnwindSafe for OptMode
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.