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 `Len`**
///
/// Interface for tracking the length or "used portion" of the allocated memory.
///
/// - `__len()` - Gets the current number of elements.
/// - `__len_set()` - Sets the number of elements.
pub trait Len {
    /// Returns the current length, representing the number of elements in use.
    fn __len(&self) -> usize;

    /// Sets the length to a new value.
    ///
    /// # Arguments
    ///
    /// * `new_len` - The updated length.
    fn __len_set(&mut self, new_len: usize);
}