pub struct TomlProfile {Show 15 fields
pub opt_level: Option<TomlOptLevel>,
pub lto: Option<StringOrBool>,
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 package: Option<BTreeMap<ProfilePackageSpec, TomlProfile>>,
pub build_override: Option<Box<TomlProfile>>,
pub dir_name: Option<InternedString>,
pub inherits: Option<InternedString>,
pub strip: Option<StringOrBool>,
}
Fields
opt_level: Option<TomlOptLevel>
lto: Option<StringOrBool>
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>
package: Option<BTreeMap<ProfilePackageSpec, TomlProfile>>
build_override: Option<Box<TomlProfile>>
dir_name: Option<InternedString>
inherits: Option<InternedString>
strip: Option<StringOrBool>
Implementations
sourceimpl TomlProfile
impl TomlProfile
pub fn validate(
&self,
name: &str,
features: &Features,
warnings: &mut Vec<String>
) -> CargoResult<()>
sourcepub fn validate_name(name: &str, what: &str) -> CargoResult<()>
pub fn validate_name(name: &str, what: &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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more