ZyanVector

Type Alias ZyanVector 

Source
pub type ZyanVector = ZyanVector_;
Expand description

Defines the ZyanVector struct.

All fields in this struct should be considered as “private”. Any changes may lead to unexpected behavior.

Aliased Type§

#[repr(C)]
pub struct ZyanVector { pub allocator: *mut ZyanAllocator_, pub growth_factor: u8, pub shrink_threshold: u8, pub size: u64, pub capacity: u64, pub element_size: u64, pub destructor: Option<unsafe extern "C" fn(*mut c_void)>, pub data: *mut c_void, }

Fields§

§allocator: *mut ZyanAllocator_

The memory allocator.

§growth_factor: u8

The growth factor.

§shrink_threshold: u8

The shrink threshold.

§size: u64

The current number of elements in the vector.

§capacity: u64

The maximum capacity (number of elements).

§element_size: u64

The size of a single element in bytes.

§destructor: Option<unsafe extern "C" fn(*mut c_void)>

The element destructor callback.

§data: *mut c_void

The data pointer.