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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#![deny(missing_docs)]
extern crate mortal;
#[cfg(windows)] #[macro_use(DEFINE_GUID)] extern crate winapi;
#[cfg(test)] #[macro_use] extern crate assert_matches;
pub use command::Command;
pub use complete::{Completer, Completion, Suffix};
pub use function::Function;
pub use interface::Interface;
pub use prompter::Prompter;
pub use reader::{Reader, ReadResult};
pub use terminal::{DefaultTerminal, Signal, Terminal};
pub use writer::Writer;
pub mod chars;
pub mod command;
pub mod complete;
pub mod function;
pub mod inputrc;
pub mod interface;
pub mod memory;
pub mod prompter;
pub mod reader;
pub mod table;
pub mod terminal;
mod util;
pub mod variables;
pub mod writer;
#[cfg(unix)]
#[path = "unix/mod.rs"]
mod sys;
#[cfg(windows)]
#[path = "windows/mod.rs"]
mod sys;
#[cfg(test)]
mod test {
use interface::Interface;
use terminal::{DefaultTerminal, Terminal};
fn assert_has_traits<T: 'static + Send + Sync>() {}
fn assert_generic_traits<T: 'static + Terminal>() {
assert_has_traits::<Interface<T>>();
}
#[test]
fn test_interface_traits() {
assert_generic_traits::<DefaultTerminal>();
}
}