pub struct ProfileDefinition {
pub name: ProfileName,
pub inherits: Option<ProfileName>,
pub debug: Option<bool>,
pub opt_level: Option<OptLevel>,
pub assertions: Option<bool>,
pub build: Option<ProfileFlags>,
}Expand description
One [profile.<name>] declaration as it appeared in
cabin.toml, after manifest-level validation but before
inheritance resolution. Every field except name is Option
so the resolver can tell “user did not set this” from “user
set this to a value”.
Fields§
§name: ProfileName§inherits: Option<ProfileName>Profile this one inherits from. Required for custom profiles; rejected on built-in profiles.
debug: Option<bool>§opt_level: Option<OptLevel>§assertions: Option<bool>§build: Option<ProfileFlags>Per-profile flag overrides for [profile.<name>] — defines,
include directories, and extra compile / link arguments that
apply when this profile is selected. None when the profile
has no flag overrides.
Trait Implementations§
Source§impl Clone for ProfileDefinition
impl Clone for ProfileDefinition
Source§fn clone(&self) -> ProfileDefinition
fn clone(&self) -> ProfileDefinition
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 moreSource§impl Debug for ProfileDefinition
impl Debug for ProfileDefinition
Source§impl<'de> Deserialize<'de> for ProfileDefinition
impl<'de> Deserialize<'de> for ProfileDefinition
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 for ProfileDefinition
impl PartialEq for ProfileDefinition
Source§fn eq(&self, other: &ProfileDefinition) -> bool
fn eq(&self, other: &ProfileDefinition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProfileDefinition
impl Serialize for ProfileDefinition
impl Eq for ProfileDefinition
impl StructuralPartialEq for ProfileDefinition
Auto Trait Implementations§
impl Freeze for ProfileDefinition
impl RefUnwindSafe for ProfileDefinition
impl Send for ProfileDefinition
impl Sync for ProfileDefinition
impl Unpin for ProfileDefinition
impl UnsafeUnpin for ProfileDefinition
impl UnwindSafe for ProfileDefinition
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§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.