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
//! Event-key exclusion: the events a caller is moving, which the engine ignores
//! wherever an existing event would otherwise count or block.
//!
//! Rescheduling a booking names it in `Request::exclude_event_keys`, and the
//! engine then reads no block or occurrence with that key as busy time, as `rest`
//! activity or as cap workload. The meeting being moved therefore neither blocks
//! its old slot nor counts against a cap it is moving out of, so a host already
//! at their limit can still be booked elsewhere.
//!
//! The keys are resolved into one sorted set per request, built once and looked up
//! by an event's key. A request that names none pays a single emptiness check, and
//! a request that names many still costs one logarithmic lookup per event rather
//! than a scan of the list.
use BTreeSet;
use crateRequest;
/// The event keys a request excludes, as one sorted set.
///
/// Not to be read as [`crate::Excluded`], which is a candidate start a search did
/// not offer: this is the caller's own list of the events it is moving.
pub