pub fn new(length: u32) -> CapVec<T> {
        CapVec {
            head_index: 0,
            len_cap: length,
            items: Vec::new(),
        }
    }
/// Constructs a new, empty `CapVec<T>` with the specified maximum length.
///
/// # Examples
/// ```
/// # use financial_primitives::capvec::CapVec;
/// let mut items = CapVec::<u64>::new(2);
/// ```
Constructs a new, empty `CapVec` with the specified maximum length.
Constructs a new empty ` CapVec ` with the specified maximum length .
pub fn new(length: u32) -> CapVec<T> {
        CapVec {
            head_index: 0,
            len_cap: length,
            items: Vec::new(),
        }
    }
pub fn new ( length : u32 ) -> CapVec < T > { CapVec { head_index : 0 , len_cap : length , items : Vec :: new ( ) , } }
Constructs a new, empty `CapVec<T>` with the specified maximum length.
Constructs a new empty ` CapVec<T > ` with the specified maximum length .
length
u32
length
u32
examples
None
use financial_primitives::capvec::capvec;
None