MCPcopy Create free account
hub / github.com/davidblewett/rure-python / print

Method print

regex/regex-syntax/src/ast/print.rs:73–75  ·  view source on GitHub ↗

Print the given `Ast` to the given writer. The writer must implement `fmt::Write`. Typical implementations of `fmt::Write` that can be used here are a `fmt::Formatter` (which is available in `fmt::Display` implementations) or a `&mut String`.

(&mut self, ast: &Ast, wtr: W)

Source from the content-addressed store, hash-verified

71 /// here are a `fmt::Formatter` (which is available in `fmt::Display`
72 /// implementations) or a `&mut String`.
73 pub fn print<W: fmt::Write>(&mut self, ast: &Ast, wtr: W) -> fmt::Result {
74 visitor::visit(ast, Writer { printer: self, wtr: wtr })
75 }
76}
77
78#[derive(Debug)]

Callers 2

fmtMethod · 0.45
roundtrip_withFunction · 0.45

Calls 1

visitFunction · 0.70

Tested by

no test coverage detected