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
/// Create a [`Transcriber`] succinctly, with optional configuration.
///
/// # Examples
///
/// The basic syntax is as follows:
/// ```
/// use tengwar::{Quenya, Transcriber, tscr};
///
/// let ts: Transcriber<_> = tscr!(Quenya; "input");
/// let _s: String = ts.collect();
/// ```
///
/// The advanced form of the syntax is as follows:
/// ```
/// use tengwar::{Quenya, tscr};
///
/// let _s = tscr!(Quenya[alt_a=true, alt_rince=true]; "input", as String);
/// ```
///
/// The Mode may also be inferred:
/// ```
/// use tengwar::{Quenya, Transcriber, tscr};
///
/// let ts: Transcriber<Quenya> = tscr!("input");
/// let _s: String = ts.collect();
/// ```
///
/// [`Transcriber`]: crate::Transcriber
// TODO: Decide whether to leave this public. If it is left public, bring the
// docs up to standard.
};
// Implicit Mode.
// let ts: Transcriber<Quenya> = tscr!("input");
=> ;
}