[][src]Struct cargo_toml_builder::types::Profile

pub struct Profile { /* fields omitted */ }

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_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Profile[src]

Auto Trait Implementations

impl Send for Profile

impl Sync for Profile

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]