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
//! A collection of getters.
/// A `trait` that allows intergrating with [`Getter`](crate::Getter) Collections.
///
/// Parsing Rust code involves different components in order to
/// deal with regular code, macros and code in documentation. Implementing
/// this `trait` on data structure involved in collecting [`Getter`](crate::Getter)s
/// eases the integration in these components.
///
/// Parsing the documentation code is like parsing a single Rust file:
/// it can invole `struct` definitions and implementations as well as
/// `macro`s. However, the code appears at a particular `offset` in the
/// actual Rust file.
///
/// See also [`TokenStreamGetterCollector`](crate::TokenStreamGetterCollector),
/// [`SyntaxTreeGetterCollector`](crate::SyntaxTreeGetterCollector) and
/// [`DocCodeGetterCollector`](crate::DocCodeGetterCollector).