aether-wisp 0.5.1

A terminal UI for AI coding agents via the Agent Client Protocol (ACP)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! A monotonic marker for cache invalidation.

/// A cache-invalidation marker: bumped when the underlying data changes,
/// compared by caches to notice they are stale.
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
pub struct Generation(u64);

impl Generation {
    /// Moves this marker on, invalidating everything built against the old one.
    pub fn bump(&mut self) {
        self.0 = self.0.wrapping_add(1);
    }
}