pub enum CompilationProfile {
Dev,
Unoptimized,
Optimized,
}
Expand description
Enumeration of possible compilation profiles that can be passed to the Rust compiler
as an argument via cargo build --profile <>
. A compilation profile affects among
other things the compilation speed (how long till the program is ready to be run)
and runtime speed (the performance while running).
JSON schema
{
"description": "Enumeration of possible compilation profiles that can be passed to the Rust compiler\nas an argument via `cargo build --profile <>`. A compilation profile affects among\nother things the compilation speed (how long till the program is ready to be run)\nand runtime speed (the performance while running).",
"type": "string",
"enum": [
"dev",
"unoptimized",
"optimized"
]
}
Variants§
Trait Implementations§
Source§impl Clone for CompilationProfile
impl Clone for CompilationProfile
Source§fn clone(&self) -> CompilationProfile
fn clone(&self) -> CompilationProfile
Returns a duplicate 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 CompilationProfile
impl Debug for CompilationProfile
Source§impl<'de> Deserialize<'de> for CompilationProfile
impl<'de> Deserialize<'de> for CompilationProfile
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 From<&CompilationProfile> for CompilationProfile
impl From<&CompilationProfile> for CompilationProfile
Source§fn from(value: &CompilationProfile) -> Self
fn from(value: &CompilationProfile) -> Self
Converts to this type from the input type.
Source§impl FromStr for CompilationProfile
impl FromStr for CompilationProfile
Source§impl Hash for CompilationProfile
impl Hash for CompilationProfile
Source§impl Ord for CompilationProfile
impl Ord for CompilationProfile
Source§fn cmp(&self, other: &CompilationProfile) -> Ordering
fn cmp(&self, other: &CompilationProfile) -> 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 CompilationProfile
impl PartialEq for CompilationProfile
Source§impl PartialOrd for CompilationProfile
impl PartialOrd for CompilationProfile
Source§impl Serialize for CompilationProfile
impl Serialize for CompilationProfile
Source§impl ToString for CompilationProfile
impl ToString for CompilationProfile
Source§impl TryFrom<&String> for CompilationProfile
impl TryFrom<&String> for CompilationProfile
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for CompilationProfile
impl TryFrom<&str> for CompilationProfile
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for CompilationProfile
impl TryFrom<String> for CompilationProfile
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
impl Copy for CompilationProfile
impl Eq for CompilationProfile
impl StructuralPartialEq for CompilationProfile
Auto Trait Implementations§
impl Freeze for CompilationProfile
impl RefUnwindSafe for CompilationProfile
impl Send for CompilationProfile
impl Sync for CompilationProfile
impl Unpin for CompilationProfile
impl UnwindSafe for CompilationProfile
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.