pub struct Build { /* private fields */ }
Implementations§
Source§impl Build
impl Build
pub fn new() -> Build
pub fn out_dir<P: AsRef<Path>>(&mut self, path: P) -> &mut Build
pub fn target(&mut self, target: &str) -> &mut Build
Sourcepub fn build(&mut self) -> Artifacts
pub fn build(&mut self) -> Artifacts
Exits the process on failure. Use try_build
to handle the error.
pub fn try_build(&mut self) -> Result<Artifacts>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Build
impl RefUnwindSafe for Build
impl Send for Build
impl Sync for Build
impl Unpin for Build
impl UnwindSafe for Build
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