pub struct Profile { /* private fields */ }Expand description
Represents a [profile.*] table
Implementations§
Source§impl 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 Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more