pub struct Build<'a> { /* private fields */ }
Available on crate feature
workspace
only.Expand description
A prepared build.
Implementations§
Source§impl<'a> Build<'a>
impl<'a> Build<'a>
Sourcepub fn with_diagnostics(self, diagnostics: &'a mut Diagnostics) -> Self
pub fn with_diagnostics(self, diagnostics: &'a mut Diagnostics) -> Self
Associate a specific diagnostic with the build.
Sourcepub fn with_source_loader(self, source_loader: &'a mut dyn SourceLoader) -> Self
pub fn with_source_loader(self, source_loader: &'a mut dyn SourceLoader) -> Self
Associate a specific source loader with the build.
By default FileSourceLoader
will be used.
Sourcepub fn build(self) -> Result<Manifest, BuildError>
pub fn build(self) -> Result<Manifest, BuildError>
Perform the build.
Auto Trait Implementations§
impl<'a> Freeze for Build<'a>
impl<'a> !RefUnwindSafe for Build<'a>
impl<'a> !Send for Build<'a>
impl<'a> !Sync for Build<'a>
impl<'a> Unpin for Build<'a>
impl<'a> !UnwindSafe for Build<'a>
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