Skip to content
Snippets Groups Projects
  1. Sep 22, 2022
  2. Sep 21, 2022
  3. Sep 20, 2022
  4. Sep 16, 2022
    • Yaroslav Dynnikov's avatar
      feature: KVCell data strcture · 31a76282
      Yaroslav Dynnikov authored
      `KVCell` contains an optional value and provides access by key in two
      flavors:
      
      ```rust
      fn take_or_drop(&mut self, key: &K) -> Option<T>
      fn take_or_keep(&mut self, key: &K) -> Option<T>
      ```
      
      Both return `Some` value only if provided key matches the contained one.
      
      The behavior differs when the provided key doesn't match:
      - `take_or_drop` always leaves the cell empty. It supersedes
        `CachedCell` and copies its behavior.
      - `take_or_keep` retains contained value. It's a replacement for
        `JointStateLatch`.
      31a76282
  5. Sep 15, 2022
  6. Sep 14, 2022
Loading