1 2 3 4 5 6 7 8 9 10
#[repr(transparent)] #[derive(Debug, Clone, Copy)] pub struct Cap(pub(crate) crate::raw::TaggedCap); impl Cap { /// Gets the size of the capacity. pub const fn size(&self) -> usize { self.0.value() } }