Struct cargo_toml_builder::types::Profile
source · pub struct Profile { /* private fields */ }
Expand description
Represents a [profile.*]
table
Implementations
sourceimpl Profile
impl Profile
sourcepub fn opt_level(&mut self, opt_level: u8) -> Result<&mut Self, Error>
pub fn opt_level(&mut self, opt_level: u8) -> Result<&mut Self, Error>
Sets the optimization level for this profile
sourcepub fn debug_assertions(&mut self, debug_assertions: bool) -> &mut Self
pub fn debug_assertions(&mut self, debug_assertions: bool) -> &mut Self
Sets the debug-assertions flag for this profile
sourcepub fn codegen_units(&mut self, codegen_units: u64) -> &mut Self
pub fn codegen_units(&mut self, codegen_units: u64) -> &mut Self
Sets the number of codegen units for this profile
sourcepub fn panic(&mut self, panic: PanicStrategy) -> &mut Self
pub fn panic(&mut self, panic: PanicStrategy) -> &mut Self
Sets the panic strategy for this profile
Trait Implementations
impl Copy for Profile
impl StructuralPartialEq for Profile
Auto Trait Implementations
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnwindSafe for Profile
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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