sector 0.1.21

A stateful vector implementation that provides different memory management behaviors through Rust traits and state machines.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// **Trait `Cap`**
///
/// Provides an interface to track the capacity of allocated memory.
///
/// # Methods
/// - `__cap()` - Retrieves the current capacity.
/// - `__cap_set(cap)` - Updates the capacity.
pub trait Cap {
    /// Returns the current capacity.
    fn __cap(&self) -> usize;

    /// Sets the capacity to a new value.
    ///
    /// # Arguments
    /// * `new_cap` - The new capacity.
    fn __cap_set(&mut self, new_cap: usize);
}