pub enum OptimizationLevel {
O0,
O1,
O2,
O3,
Os,
Oz,
}
Expand description
The various possible optimization levels
Variants§
Trait Implementations§
source§impl Clone for OptimizationLevel
impl Clone for OptimizationLevel
source§fn clone(&self) -> OptimizationLevel
fn clone(&self) -> OptimizationLevel
Returns a copy 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 moresource§impl Debug for OptimizationLevel
impl Debug for OptimizationLevel
source§impl<'de> Deserialize<'de> for OptimizationLevel
impl<'de> Deserialize<'de> for OptimizationLevel
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<OptimizationLevel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<OptimizationLevel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for OptimizationLevel
impl Display for OptimizationLevel
source§impl Hash for OptimizationLevel
impl Hash for OptimizationLevel
source§impl Ord for OptimizationLevel
impl Ord for OptimizationLevel
source§fn cmp(&self, other: &OptimizationLevel) -> Ordering
fn cmp(&self, other: &OptimizationLevel) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for OptimizationLevel
impl PartialEq for OptimizationLevel
source§fn eq(&self, other: &OptimizationLevel) -> bool
fn eq(&self, other: &OptimizationLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for OptimizationLevel
impl PartialOrd for OptimizationLevel
source§fn partial_cmp(&self, other: &OptimizationLevel) -> Option<Ordering>
fn partial_cmp(&self, other: &OptimizationLevel) -> Option<Ordering>
1.0.0 · source§fn 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 moresource§impl Serialize for OptimizationLevel
impl Serialize for OptimizationLevel
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for OptimizationLevel
impl Eq for OptimizationLevel
impl StructuralPartialEq for OptimizationLevel
Auto Trait Implementations§
impl RefUnwindSafe for OptimizationLevel
impl Send for OptimizationLevel
impl Sync for OptimizationLevel
impl Unpin for OptimizationLevel
impl UnwindSafe for OptimizationLevel
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