Enum bootstrap::config::RustOptimize
source · pub enum RustOptimize {
String(String),
Int(u8),
Bool(bool),
}
Variants§
Implementations§
source§impl RustOptimize
impl RustOptimize
pub(crate) fn is_release(&self) -> bool
pub(crate) fn get_opt_level(&self) -> Option<String>
Trait Implementations§
source§impl Clone for RustOptimize
impl Clone for RustOptimize
source§fn clone(&self) -> RustOptimize
fn clone(&self) -> RustOptimize
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 RustOptimize
impl Debug for RustOptimize
source§impl Default for RustOptimize
impl Default for RustOptimize
source§fn default() -> RustOptimize
fn default() -> RustOptimize
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RustOptimize
impl<'de> Deserialize<'de> for RustOptimize
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<RustOptimize> for RustOptimize
impl PartialEq<RustOptimize> for RustOptimize
source§fn eq(&self, other: &RustOptimize) -> bool
fn eq(&self, other: &RustOptimize) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RustOptimize
impl StructuralEq for RustOptimize
impl StructuralPartialEq for RustOptimize
Auto Trait Implementations§
impl RefUnwindSafe for RustOptimize
impl Send for RustOptimize
impl Sync for RustOptimize
impl Unpin for RustOptimize
impl UnwindSafe for RustOptimize
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<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes
Size for each variant:
String
: 31 bytesInt
: 1 byteBool
: 1 byte