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
//! Compile-time trait-bound detection — minimal vendored replacement for
//! `impls::impls!`.
//!
//! `impls!($Type : $Trait)` evaluates to a `const bool` that is `true` if
//! `$Type: $Trait` and `false` otherwise. The macro is consumed only by code
//! that `crudcrate-derive` generates (specifically the bidirectional-relation
//! check in `relation_validator`); it isn't intended as a public utility.
//!
//! Mechanism: the standard autoref/sentinel-trait specialization trick — a
//! blanket fallback trait sets `IMPLS = false`, and a more specific concrete
//! `Wrapper<T>` impl bound on `T: $Trait` overrides it with `IMPLS = true`.
//! See <https://github.com/nvzqz/impls> for the original source.
/// See module docs.