1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
use std::borrow::Cow;

use crate::algorithm::Printer;

impl Printer<'_> {
    pub fn ibox(&mut self, indent: isize) {
        self.inner.ibox(indent)
    }

    pub fn cbox(&mut self, indent: isize) {
        self.inner.cbox(indent)
    }

    pub fn end(&mut self) {
        self.inner.end();
    }

    pub fn word<S: Into<Cow<'static, str>>>(&mut self, wrd: S) {
        self.inner.word(wrd)
    }

    fn spaces(&mut self, n: usize) {
        self.inner.spaces(n)
    }

    pub fn zerobreak(&mut self) {
        self.inner.zerobreak()
    }

    pub fn space(&mut self) {
        self.inner.space()
    }

    pub fn nbsp(&mut self) {
        self.inner.nbsp()
    }

    pub fn hardbreak(&mut self) {
        self.inner.hardbreak()
    }

    pub fn space_if_nonempty(&mut self) {
        self.inner.space_if_nonempty()
    }

    pub fn hardbreak_if_nonempty(&mut self) {
        self.inner.hardbreak_if_nonempty()
    }

    pub fn trailing_comma(&mut self, is_last: bool) {
        self.inner.trailing_comma(is_last)
    }

    pub fn trailing_comma_or_space(&mut self, is_last: bool) {
        self.inner.trailing_comma_or_space(is_last)
    }

    pub fn neverbreak(&mut self) {
        self.inner.neverbreak();
    }
}