struct Writer<W> {
wtr: W,
}Fields§
§wtr: WImplementations§
Trait Implementations§
Source§impl<W: Write> Visitor for Writer<W>
impl<W: Write> Visitor for Writer<W>
Source§fn finish(self) -> Result
fn finish(self) -> Result
All implementors of
Visitor must provide a finish method, which
yields the result of visiting the HIR or an error.Source§fn visit_pre(&mut self, hir: &Hir) -> Result
fn visit_pre(&mut self, hir: &Hir) -> Result
This method is called on an
Hir before descending into child Hir
nodes.Source§fn visit_post(&mut self, hir: &Hir) -> Result
fn visit_post(&mut self, hir: &Hir) -> Result
This method is called on an
Hir after descending all of its child
Hir nodes.Source§fn visit_alternation_in(&mut self) -> Result
fn visit_alternation_in(&mut self) -> Result
This method is called between child nodes of an alternation.
Auto Trait Implementations§
impl<W> Freeze for Writer<W>where
W: Freeze,
impl<W> RefUnwindSafe for Writer<W>where
W: RefUnwindSafe,
impl<W> Send for Writer<W>where
W: Send,
impl<W> Sync for Writer<W>where
W: Sync,
impl<W> Unpin for Writer<W>where
W: Unpin,
impl<W> UnwindSafe for Writer<W>where
W: UnwindSafe,
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