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: u8The growth factor.
shrink_threshold: u8The shrink threshold.
size: u64The current number of elements in the vector.
capacity: u64The maximum capacity (number of elements).
element_size: u64The size of a single element in bytes.
destructor: Option<unsafe extern "C" fn(*mut c_void)>The element destructor callback.
data: *mut c_voidThe data pointer.