pub struct GraphWriter { /* private fields */ }Expand description
The result of GraphBuilder::finish() — owns the AST and can write it to disk.
Implementations§
Source§impl GraphWriter
impl GraphWriter
Sourcepub fn write_to_path<P: AsRef<Path>>(
self,
dest: P,
) -> Result<PathBuf, CodegenError>
pub fn write_to_path<P: AsRef<Path>>( self, dest: P, ) -> Result<PathBuf, CodegenError>
Consume self and write the generated code to dest using the
codegen emitter and formatter. Returns the path written.
Auto Trait Implementations§
impl Freeze for GraphWriter
impl RefUnwindSafe for GraphWriter
impl !Send for GraphWriter
impl !Sync for GraphWriter
impl Unpin for GraphWriter
impl UnsafeUnpin for GraphWriter
impl UnwindSafe for GraphWriter
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