#[repr(C)]pub struct ZyanVector_ {
pub allocator: *mut ZyanAllocator,
pub growth_factor: ZyanU8,
pub shrink_threshold: ZyanU8,
pub size: ZyanUSize,
pub capacity: ZyanUSize,
pub element_size: ZyanUSize,
pub destructor: ZyanMemberProcedure,
pub data: *mut c_void,
}Expand description
Defines the ZyanVector struct.
All fields in this struct should be considered as “private”. Any changes may lead to unexpected behavior.
Fields§
§allocator: *mut ZyanAllocatorThe memory allocator.
growth_factor: ZyanU8The growth factor.
shrink_threshold: ZyanU8The shrink threshold.
size: ZyanUSizeThe current number of elements in the vector.
capacity: ZyanUSizeThe maximum capacity (number of elements).
element_size: ZyanUSizeThe size of a single element in bytes.
destructor: ZyanMemberProcedureThe element destructor callback.
data: *mut c_voidThe data pointer.
Trait Implementations§
Source§impl Clone for ZyanVector_
impl Clone for ZyanVector_
Source§fn clone(&self) -> ZyanVector_
fn clone(&self) -> ZyanVector_
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ZyanVector_
impl Debug for ZyanVector_
Source§impl Default for ZyanVector_
impl Default for ZyanVector_
Source§impl PartialEq for ZyanVector_
impl PartialEq for ZyanVector_
impl Copy for ZyanVector_
impl Eq for ZyanVector_
impl StructuralPartialEq for ZyanVector_
Auto Trait Implementations§
impl Freeze for ZyanVector_
impl RefUnwindSafe for ZyanVector_
impl !Send for ZyanVector_
impl !Sync for ZyanVector_
impl Unpin for ZyanVector_
impl UnwindSafe for ZyanVector_
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more