pub struct JsonGenerator {}Expand description
Generator for the JSON representation of a module’s in-memory model.
Trait Implementations§
Source§impl Debug for JsonGenerator
impl Debug for JsonGenerator
Source§impl Default for JsonGenerator
impl Default for JsonGenerator
Source§fn default() -> JsonGenerator
fn default() -> JsonGenerator
Returns the “default value” for a type. Read more
Source§impl Generator for JsonGenerator
impl Generator for JsonGenerator
type Options = JsonGeneratorOptions
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 JsonGenerator
impl RefUnwindSafe for JsonGenerator
impl Send for JsonGenerator
impl Sync for JsonGenerator
impl Unpin for JsonGenerator
impl UnsafeUnpin for JsonGenerator
impl UnwindSafe for JsonGenerator
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