mop-structs 0.0.10

Low-level structures for MOP
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::prelude::StDenseStoRef;

/// Dynamic Indexed Storage - Reference
pub trait DynDenseStoRef: StDenseStoRef {
  fn capacity(&self) -> usize;
}

#[cfg(feature = "std")]
impl<T> DynDenseStoRef for Vec<T> {
  fn capacity(&self) -> usize {
    self.capacity()
  }
}