pub struct SourceGenerator { /* private fields */ }Implementations§
Source§impl 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 !UnwindSafe for SourceGenerator
impl Freeze for SourceGenerator
impl Unpin for SourceGenerator
impl UnsafeUnpin for SourceGenerator
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