Skip to content

Commit 01ef29a

Browse files
committed
Hide full iterator API from rendered documentation
1 parent a829be6 commit 01ef29a

File tree

2 files changed

+45
-45
lines changed

2 files changed

+45
-45
lines changed

book/src/binding/slice.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,21 @@ public:
3131
iterator begin() const noexcept;
3232
iterator end() const noexcept;
3333
};
34-
35-
template <typename T>
36-
class Slice<T>::iterator final {
37-
public:
38-
using value_type = T;
39-
using pointer = T *;
40-
using reference = T &;
41-
42-
T &operator*() const noexcept;
43-
T *operator->() const noexcept;
44-
iterator &operator++() noexcept;
45-
iterator operator++(int) noexcept;
46-
bool operator==(const iterator &) const noexcept;
47-
bool operator!=(const iterator &) const noexcept;
48-
};
34+
#
35+
# template <typename T>
36+
# class Slice<T>::iterator final {
37+
# public:
38+
# using value_type = T;
39+
# using pointer = T *;
40+
# using reference = T &;
41+
#
42+
# T &operator*() const noexcept;
43+
# T *operator->() const noexcept;
44+
# iterator &operator++() noexcept;
45+
# iterator operator++(int) noexcept;
46+
# bool operator==(const iterator &) const noexcept;
47+
# bool operator!=(const iterator &) const noexcept;
48+
# };
4949
#
5050
# } // namespace rust
5151
```

book/src/binding/vec.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -49,36 +49,36 @@ public:
4949
const_iterator cbegin() const noexcept;
5050
const_iterator cend() const noexcept;
5151
};
52-
53-
template <typename T>
54-
class Vec<T>::iterator final {
55-
public:
56-
using value_type = T;
57-
using pointer = T *;
58-
using reference = T &;
59-
60-
T &operator*() const noexcept;
61-
T *operator->() const noexcept;
62-
iterator &operator++() noexcept;
63-
iterator operator++(int) noexcept;
64-
bool operator==(const iterator &) const noexcept;
65-
bool operator!=(const iterator &) const noexcept;
66-
};
67-
68-
template <typename T>
69-
class Vec<T>::const_iterator final {
70-
public:
71-
using value_type = const T;
72-
using pointer = const T *;
73-
using reference = const T &;
74-
75-
const T &operator*() const noexcept;
76-
const T *operator->() const noexcept;
77-
const_iterator &operator++() noexcept;
78-
const_iterator operator++(int) noexcept;
79-
bool operator==(const const_iterator &) const noexcept;
80-
bool operator!=(const const_iterator &) const noexcept;
81-
};
52+
#
53+
# template <typename T>
54+
# class Vec<T>::iterator final {
55+
# public:
56+
# using value_type = T;
57+
# using pointer = T *;
58+
# using reference = T &;
59+
#
60+
# T &operator*() const noexcept;
61+
# T *operator->() const noexcept;
62+
# iterator &operator++() noexcept;
63+
# iterator operator++(int) noexcept;
64+
# bool operator==(const iterator &) const noexcept;
65+
# bool operator!=(const iterator &) const noexcept;
66+
# };
67+
#
68+
# template <typename T>
69+
# class Vec<T>::const_iterator final {
70+
# public:
71+
# using value_type = const T;
72+
# using pointer = const T *;
73+
# using reference = const T &;
74+
#
75+
# const T &operator*() const noexcept;
76+
# const T *operator->() const noexcept;
77+
# const_iterator &operator++() noexcept;
78+
# const_iterator operator++(int) noexcept;
79+
# bool operator==(const const_iterator &) const noexcept;
80+
# bool operator!=(const const_iterator &) const noexcept;
81+
# };
8282
#
8383
# } // namespace rust
8484
```

0 commit comments

Comments
 (0)