From d9095d8fce59714f75019ecf68911d9931a1af15 Mon Sep 17 00:00:00 2001 From: Mica White Date: Sat, 14 Mar 2026 20:37:26 -0400 Subject: Basic scoped lock and guard implementations --- src/iterator.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/iterator.rs (limited to 'src/iterator.rs') diff --git a/src/iterator.rs b/src/iterator.rs new file mode 100644 index 0000000..30b01e0 --- /dev/null +++ b/src/iterator.rs @@ -0,0 +1,18 @@ +mod consumed_guard; +mod guard; +mod iterator; + +pub struct LockingIterator { + key: Key, + lockable: L, +} + +pub struct IteratorGuard<'a, Guard, Key> { + _key: &'a Key, + guard: Guard, +} + +pub struct ConsumedIteratorGuard { + key: Key, + guard: Guard, +} -- cgit v1.2.3