pub enum LLVMOptLevel {
None,
Less,
Default,
Aggressive,
}
Expand description
Defines the optimization level used to compile a Module
.
Remarks
See also: https://llvm.org/doxygen/CodeGen_8h_source.html
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 Default for OptimizationLevel
impl Default for OptimizationLevel
source§fn default() -> OptimizationLevel
fn default() -> OptimizationLevel
Returns the default value for OptimizationLevel
, namely OptimizationLevel::Default
.
source§impl PartialEq<OptimizationLevel> for OptimizationLevel
impl PartialEq<OptimizationLevel> 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 ==
.impl Copy for OptimizationLevel
impl Eq for OptimizationLevel
impl StructuralEq 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§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
source§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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.