pub enum RustOptLevel {
O0,
O1,
O2,
O3,
Os,
Oz,
}Expand description
Optimization levels for Rust compilation
Variants§
O0
No optimization (fastest compilation)
O1
Basic optimization
O2
Full optimization
O3
Aggressive optimization (may increase compile time significantly)
Os
Size optimization
Oz
Aggressive size optimization
Implementations§
Trait Implementations§
Source§impl Clone for RustOptLevel
impl Clone for RustOptLevel
Source§fn clone(&self) -> RustOptLevel
fn clone(&self) -> RustOptLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RustOptLevel
Source§impl Debug for RustOptLevel
impl Debug for RustOptLevel
Source§impl Default for RustOptLevel
impl Default for RustOptLevel
Source§fn default() -> RustOptLevel
fn default() -> RustOptLevel
Returns the “default value” for a type. Read more
impl Eq for RustOptLevel
Source§impl Hash for RustOptLevel
impl Hash for RustOptLevel
Source§impl PartialEq for RustOptLevel
impl PartialEq for RustOptLevel
Source§fn eq(&self, other: &RustOptLevel) -> bool
fn eq(&self, other: &RustOptLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RustOptLevel
Auto Trait Implementations§
impl Freeze for RustOptLevel
impl RefUnwindSafe for RustOptLevel
impl Send for RustOptLevel
impl Sync for RustOptLevel
impl Unpin for RustOptLevel
impl UnsafeUnpin for RustOptLevel
impl UnwindSafe for RustOptLevel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.