]>
git.proxmox.com Git - rustc.git/blob - compiler/rustc_ast_pretty/src/helpers.rs
1 use crate::pp
::Printer
;
5 pub fn word_space
<W
: Into
<Cow
<'
static, str>>>(&mut self, w
: W
) {
10 pub fn popen(&mut self) {
14 pub fn pclose(&mut self) {
18 pub fn hardbreak_if_not_bol(&mut self) {
19 if !self.is_beginning_of_line() {
24 pub fn space_if_not_bol(&mut self) {
25 if !self.is_beginning_of_line() {
30 pub fn nbsp(&mut self) {
34 pub fn word_nbsp
<S
: Into
<Cow
<'
static, str>>>(&mut self, w
: S
) {
39 /// Synthesizes a comment that was not textually present in the original
41 pub fn synth_comment(&mut self, text
: impl Into
<Cow
<'
static, str>>) {