pub struct Config { /* private fields */ }
Implementations§
Source§impl Config
impl Config
pub fn new<P: AsRef<Path>>(p: P) -> Config
pub fn generator<S: AsRef<str>>(&mut self, generator: S) -> &mut Config
pub fn profile(&mut self, prof: &str) -> &mut Config
pub fn define<K: AsRef<OsStr>, V: AsRef<OsStr>>( &mut self, key: K, val: V, ) -> &mut Config
pub fn cflag(&mut self, flag: &str) -> &mut Config
pub fn cxxflag(&mut self, flag: &str) -> &mut Config
pub fn try_build(&mut self) -> Result<PathBuf, Error>
pub fn build(&mut self) -> PathBuf
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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