#[repr(u32)]
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
None
Less
Default
Aggressive
Trait Implementations
sourceimpl Clone for OptimizationLevel
impl Clone for OptimizationLevel
sourcefn clone(&self) -> OptimizationLevel
fn clone(&self) -> OptimizationLevel
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OptimizationLevel
impl Debug for OptimizationLevel
sourceimpl Default for OptimizationLevel
impl Default for OptimizationLevel
sourcefn default() -> OptimizationLevel
fn default() -> OptimizationLevel
Returns the default value for OptimizationLevel
, namely OptimizationLevel::Default
.
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.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
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
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Upcastable for T where
T: 'static + Any + Send + Sync,
impl<T> Upcastable for T where
T: 'static + Any + Send + Sync,
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref