pub struct Profile {Show 16 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>,
pub trim_paths: Option<TomlTrimPaths>,
}
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>
§trim_paths: Option<TomlTrimPaths>
Implementations§
Source§impl Profile
impl Profile
Sourcefn default_dev() -> Profile
fn default_dev() -> Profile
Returns a built-in dev
profile.
Sourcefn default_release(trim_paths_enabled: bool) -> Profile
fn default_release(trim_paths_enabled: bool) -> 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 PartialOrd for Profile
impl PartialOrd for Profile
impl Eq for Profile
Auto Trait Implementations§
impl Freeze for Profile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§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>,
§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: 176 bytes