pub struct Emitter<'a> { /* private fields */ }Expand description
Package-relative emitter. Ownership is retained for collision diagnostics.
Implementations§
Source§impl Emitter<'_>
impl Emitter<'_>
pub fn emit(&mut self, file: GeneratedFile) -> Result<()>
pub fn emit_custom(&mut self, file: GeneratedFile) -> Result<()>
pub fn append(&mut self, tree: GeneratedTree) -> Result<()>
Sourcepub fn append_from(&mut self, tree: GeneratedTree, prefix: &Path) -> Result<()>
pub fn append_from(&mut self, tree: GeneratedTree, prefix: &Path) -> Result<()>
Adapts a renderer with its own output prefix while retaining create-once files.
Auto Trait Implementations§
impl<'a> !UnwindSafe for Emitter<'a>
impl<'a> Freeze for Emitter<'a>
impl<'a> RefUnwindSafe for Emitter<'a>
impl<'a> Send for Emitter<'a>
impl<'a> Sync for Emitter<'a>
impl<'a> Unpin for Emitter<'a>
impl<'a> UnsafeUnpin for Emitter<'a>
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