pub struct Profile {Show 15 fields
pub name: InternedString,
pub opt_level: InternedString,
pub root: ProfileRoot,
pub lto: Lto,
pub codegen_backend: Option<InternedString>,
pub codegen_units: Option<u32>,
pub debuginfo: DebugInfo,
pub split_debuginfo: Option<InternedString>,
pub debug_assertions: bool,
pub overflow_checks: bool,
pub rpath: bool,
pub incremental: bool,
pub panic: PanicStrategy,
pub strip: Strip,
pub rustflags: Vec<InternedString>,
}
Expand description
Profile settings used to determine which compiler flags to use for a target.
Fields§
§name: InternedString
§opt_level: InternedString
§root: ProfileRoot
§lto: Lto
§codegen_backend: Option<InternedString>
§codegen_units: Option<u32>
§debuginfo: DebugInfo
§split_debuginfo: Option<InternedString>
§debug_assertions: bool
§overflow_checks: bool
§rpath: bool
§incremental: bool
§panic: PanicStrategy
§strip: Strip
§rustflags: Vec<InternedString>
Implementations§
source§impl Profile
impl Profile
sourcefn default_dev() -> Profile
fn default_dev() -> Profile
Returns a built-in dev
profile.
sourcefn default_release() -> Profile
fn default_release() -> Profile
Returns a built-in release
profile.
sourcefn comparable(&self) -> impl Hash + Eq + '_
fn comparable(&self) -> impl Hash + Eq + '_
Compares all fields except name
, which doesn’t affect compilation.
This is necessary for Unit
deduplication for things like “test” and
“dev” which are essentially the same.
Trait Implementations§
source§impl Ord for Profile
impl Ord for Profile
source§impl PartialEq<Profile> for Profile
impl PartialEq<Profile> for Profile
source§impl PartialOrd<Profile> for Profile
impl PartialOrd<Profile> for Profile
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Profile
impl StructuralEq for Profile
Auto Trait Implementations§
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnwindSafe for Profile
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<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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Serialize for Twhere
T: Serialize + ?Sized,
impl<T> Serialize for Twhere T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
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: 144 bytes