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
//! `sel!`, `chord!` and `keystroke!`: declarative wrappers that pass this crate's `$crate` to
//! the procedural macros in `icedwright-macros`, so the expansion names only paths under
//! `$crate::__private` and resolves in a crate that depends on `icedwright` alone.
//!
//! The crate root needs `mod macros;` and `#[doc(hidden)] pub use macros::__private;`, or,
//! if it has a `__private` module of its own, `pub use crate::macros::__private::*;` inside it.
//! `icedwright-remote` defines the same three macros and the same `__private` items.
/// A [`Locator`](icedwright_locator::Locator) from a selector string checked at compile time.
///
/// A syntax error, an unknown role or attribute, or an invalid regex fails the build with the
/// parser's message. The locator is typed by the last `role=` step, or an `as-role=` after it,
/// and is `Locator<AnyRole>` otherwise.
/// A [`Chord`](icedwright_types::Chord) checked at compile time, such as
/// `chord!(Ctrl + Shift + K)` or `chord!(ControlOrMeta + "é")`.
///
/// A misspelt name, a modifier in the last position, two keys or an empty chord fails the
/// build at the offending token, with the nearest names.
/// A single [`Keystroke`](icedwright_types::Keystroke) checked at compile time, such as
/// `keystroke!(Shift)` or `keystroke!(Code(KeyK))`, for pressing and releasing one key.
/// What the macros above expand to. Not a stable API.