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
// Move trait definition.
use Debug;
use PlanningSolution;
use Director;
/// A move that modifies one or more planning variables.
///
/// Moves are fully typed for maximum performance - no boxing, no virtual dispatch.
/// Undo is handled by `RecordingDirector`, not by move return values.
///
/// # Type Parameters
/// * `S` - The planning solution type
///
/// # Implementation Notes
/// - Moves should be lightweight
/// - Use `RecordingDirector` to wrap the score director for automatic undo
/// - Moves are NEVER cloned - ownership transfers via arena indices
/// - Methods are generic over D to allow use with both concrete directors and RecordingDirector