Trait cpp_demangle::DemangleWrite
source · pub trait DemangleWrite {
fn write_string(&mut self, s: &str) -> Result;
fn push_demangle_node(&mut self, _: DemangleNodeType) { ... }
fn pop_demangle_node(&mut self) { ... }
}
Expand description
Sink for demangled text that reports syntactic structure.
Required Methods§
sourcefn write_string(&mut self, s: &str) -> Result
fn write_string(&mut self, s: &str) -> Result
Same as fmt::Write::write_str
.
Provided Methods§
sourcefn push_demangle_node(&mut self, _: DemangleNodeType)
fn push_demangle_node(&mut self, _: DemangleNodeType)
Called when we are entering the scope of some AST node.
sourcefn pop_demangle_node(&mut self)
fn pop_demangle_node(&mut self)
Called when we are exiting the scope of some AST node for
which push_demangle_node
was called.