pub struct SourceGenerator { /* private fields */ }
Expand description
The type that implements the generator.
Trait Implementations§
Source§impl Debug for SourceGenerator
impl Debug for SourceGenerator
Source§impl Default for SourceGenerator
impl Default for SourceGenerator
Source§fn default() -> SourceGenerator
fn default() -> SourceGenerator
Returns the “default value” for a type. Read more
Source§impl Generator for SourceGenerator
impl Generator for SourceGenerator
type Options = SourceGeneratorOptions
Source§fn generate_with_options<W>(
&mut self,
module: &Module,
_: &impl ModuleStore,
options: Self::Options,
_: Option<PathBuf>,
writer: &mut W,
) -> Result<(), Error>
fn generate_with_options<W>( &mut self, module: &Module, _: &impl ModuleStore, options: Self::Options, _: Option<PathBuf>, writer: &mut W, ) -> Result<(), Error>
Generate from the given module into the provided writer.
Source§fn generate<W>(
&mut self,
module: &Module,
cache: &impl ModuleStore,
path: Option<PathBuf>,
writer: &mut W,
) -> Result<(), Error>
fn generate<W>( &mut self, module: &Module, cache: &impl ModuleStore, path: Option<PathBuf>, writer: &mut W, ) -> Result<(), Error>
Generate from the given module into the provided writer. Note that this calls
generate_with_options
using Self::Options::default()
.Auto Trait Implementations§
impl Freeze for SourceGenerator
impl RefUnwindSafe for SourceGenerator
impl Send for SourceGenerator
impl Sync for SourceGenerator
impl Unpin for SourceGenerator
impl UnwindSafe 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