pub struct TomlProfile {Show 17 fields
pub opt_level: Option<TomlOptLevel>,
pub lto: Option<StringOrBool>,
pub codegen_backend: Option<InternedString>,
pub codegen_units: Option<u32>,
pub debug: Option<U32OrBool>,
pub split_debuginfo: Option<String>,
pub debug_assertions: Option<bool>,
pub rpath: Option<bool>,
pub panic: Option<String>,
pub overflow_checks: Option<bool>,
pub incremental: Option<bool>,
pub dir_name: Option<InternedString>,
pub inherits: Option<InternedString>,
pub strip: Option<StringOrBool>,
pub rustflags: Option<Vec<InternedString>>,
pub package: Option<BTreeMap<ProfilePackageSpec, TomlProfile>>,
pub build_override: Option<Box<TomlProfile>>,
}
Fields
opt_level: Option<TomlOptLevel>
lto: Option<StringOrBool>
codegen_backend: Option<InternedString>
codegen_units: Option<u32>
debug: Option<U32OrBool>
split_debuginfo: Option<String>
debug_assertions: Option<bool>
rpath: Option<bool>
panic: Option<String>
overflow_checks: Option<bool>
incremental: Option<bool>
dir_name: Option<InternedString>
inherits: Option<InternedString>
strip: Option<StringOrBool>
rustflags: Option<Vec<InternedString>>
package: Option<BTreeMap<ProfilePackageSpec, TomlProfile>>
build_override: Option<Box<TomlProfile>>
Implementations
sourceimpl TomlProfile
impl TomlProfile
pub fn validate(
&self,
name: &str,
features: &Features,
warnings: &mut Vec<String>
) -> CargoResult<()>
sourcepub fn validate_name(name: &str) -> CargoResult<()>
pub fn validate_name(name: &str) -> CargoResult<()>
Validate dir-names and profile names according to RFC 2678.
sourcepub fn merge(&mut self, profile: &TomlProfile)
pub fn merge(&mut self, profile: &TomlProfile)
Overwrite self’s values with the given profile.
Trait Implementations
sourceimpl Clone for TomlProfile
impl Clone for TomlProfile
sourcefn clone(&self) -> TomlProfile
fn clone(&self) -> TomlProfile
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TomlProfile
impl Debug for TomlProfile
sourceimpl Default for TomlProfile
impl Default for TomlProfile
sourcefn default() -> TomlProfile
fn default() -> TomlProfile
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for TomlProfile where
TomlProfile: Default,
impl<'de> Deserialize<'de> for TomlProfile where
TomlProfile: Default,
sourcefn 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
sourceimpl PartialEq<TomlProfile> for TomlProfile
impl PartialEq<TomlProfile> for TomlProfile
sourcefn eq(&self, other: &TomlProfile) -> bool
fn eq(&self, other: &TomlProfile) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TomlProfile) -> bool
fn ne(&self, other: &TomlProfile) -> bool
This method tests for !=
.
sourceimpl Serialize for TomlProfile
impl Serialize for TomlProfile
impl Eq for TomlProfile
impl StructuralEq for TomlProfile
impl StructuralPartialEq for TomlProfile
Auto Trait Implementations
impl RefUnwindSafe for TomlProfile
impl Send for TomlProfile
impl Sync for TomlProfile
impl Unpin for TomlProfile
impl UnwindSafe for TomlProfile
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.