Struct bundle_sources::SourceGenerator
source · pub struct SourceGenerator { /* private fields */ }
Implementations
sourceimpl SourceGenerator
impl SourceGenerator
pub fn new_adding(output_dir: String) -> Result<SourceGenerator, Error>
pub fn new_trashing(output_dir: String) -> Result<SourceGenerator, Error>
pub fn configure(&mut self, config: Config) -> &mut Self
sourcepub fn add_component<C: Component>(
&mut self,
src: &C,
basename: &str,
cat: Category,
desc: Html
) -> Result<(), Error>
pub fn add_component<C: Component>(
&mut self,
src: &C,
basename: &str,
cat: Category,
desc: Html
) -> Result<(), Error>
desc
should be a single line of text in HTML syntax
sourcepub fn add_cargo_packages(
&mut self,
spec_manifest_path: Option<&str>
) -> Result<(), Error>
pub fn add_cargo_packages(
&mut self,
spec_manifest_path: Option<&str>
) -> Result<(), Error>
Some(“Cargo.toml”) mentions the package name for the metadata json
pub fn aggregate(self) -> Result<Vec<OutputItem>, Error>
Auto Trait Implementations
impl !RefUnwindSafe for SourceGenerator
impl !Send for SourceGenerator
impl !Sync for SourceGenerator
impl Unpin for SourceGenerator
impl !UnwindSafe for SourceGenerator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more