[−][src]Struct cargo_toml_builder::prelude::Profile
Represents a [profile.*]
table
Methods
impl Profile
[src]
pub fn new() -> Profile
[src]
Constructs a new, empty profile
pub fn opt_level(&mut self, opt_level: u8) -> Result<&mut Self, Error>
[src]
Sets the optimization level for this profile
pub fn debug(&mut self, debug: bool) -> &mut Self
[src]
Sets the debug flag for this profile
pub fn rpath(&mut self, rpath: bool) -> &mut Self
[src]
Sets the rpath flag for this profile
pub fn lto(&mut self, lto: bool) -> &mut Self
[src]
Sets the lto flag for this profile
pub fn debug_assertions(&mut self, debug_assertions: bool) -> &mut Self
[src]
Sets the debug-assertions flag for this profile
pub fn codegen_units(&mut self, codegen_units: u64) -> &mut Self
[src]
Sets the number of codegen units for this profile
pub fn panic(&mut self, panic: PanicStrategy) -> &mut Self
[src]
Sets the panic strategy for this profile
pub fn build(&self) -> Profile
[src]
Takes ownership of this builder
Trait Implementations
impl Copy for Profile
[src]
impl PartialEq<Profile> for Profile
[src]
impl Default for Profile
[src]
impl Clone for Profile
[src]
fn clone(&self) -> Profile
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Profile
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,